[MM-57900] With long instance names, the About message gets cutoff in menu item (#26955)

Этот коммит содержится в:
Arya Khochare
2024-10-18 09:35:47 +05:30
коммит произвёл GitHub
родитель e6d6881917
Коммит c4fde3109b
3 изменённых файлов: 13 добавлений и 2 удалений

Просмотреть файл

@@ -46,8 +46,15 @@
line-height: 16px;
}
div.text{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
span.MenuItem__primary-text {
display: inline-flex;
max-width: 100%;
padding: 5px 0;
line-height: 22px;
white-space: nowrap;

Просмотреть файл

@@ -44,7 +44,11 @@ describe('components/MenuItem', () => {
>
test-icon
</span>
test-text
<div
className="text"
>
test-text
</div>
</React.Fragment>
}
/>

Просмотреть файл

@@ -34,7 +34,7 @@ export default function menuItem(Component: React.ComponentType<any>) {
textProp = (
<>
<span className='icon'>{icon}</span>
{text}
<div className='text'>{text}</div>
</>
);
}