[MM-57900] With long instance names, the About message gets cutoff in menu item (#26955)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e6d6881917
Коммит
c4fde3109b
@@ -46,8 +46,15 @@
|
|||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.text{
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
span.MenuItem__primary-text {
|
span.MenuItem__primary-text {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
max-width: 100%;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
@@ -44,7 +44,11 @@ describe('components/MenuItem', () => {
|
|||||||
>
|
>
|
||||||
test-icon
|
test-icon
|
||||||
</span>
|
</span>
|
||||||
test-text
|
<div
|
||||||
|
className="text"
|
||||||
|
>
|
||||||
|
test-text
|
||||||
|
</div>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default function menuItem(Component: React.ComponentType<any>) {
|
|||||||
textProp = (
|
textProp = (
|
||||||
<>
|
<>
|
||||||
<span className='icon'>{icon}</span>
|
<span className='icon'>{icon}</span>
|
||||||
{text}
|
<div className='text'>{text}</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user