Skip to content

Commit d0afc49

Browse files
committed
Fix svg icons disapearing in app navigation when text overflows
The issue is caused by the icon being positionned with negative margins and the `overflow: hidden` rule when hide the icon when the text overflows. Remove positioning with negative margins. This was only happening in Firefox. This fix #23849 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent a8aeaa6 commit d0afc49

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/css/apps.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ kbd {
267267
justify-content: space-between;
268268
line-height: 44px;
269269
min-height: 44px;
270-
padding: 0 12px 0 44px;
270+
padding: 0 12px 0 14px;
271271
overflow: hidden;
272272
box-sizing: border-box;
273273
white-space: nowrap;
@@ -277,11 +277,14 @@ kbd {
277277
flex: 1 1 0px;
278278
z-index: 100; /* above the bullet to allow click*/
279279
/* TODO: forbid using img as icon in menu? */
280+
281+
.svg {
282+
padding: 0 12px 0 44px;
283+
}
280284
&:first-child img {
281285
margin-right: 11px;
282286
width: 16px;
283287
height: 16px;
284-
margin-left: -30px;
285288
}
286289

287290
/* counter can also be inside the link */

0 commit comments

Comments
 (0)