Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit ecdc11d

Browse files
justjannet3chguy
andauthored
Fix space panel width change on hovering over space item (#8299)
* Fix space panel width change on hovering over space item Co-authored-by: Michael Telatynski <[email protected]>
1 parent ceae8bb commit ecdc11d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

res/css/structures/_SpacePanel.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ $activeBorderColor: $primary-content;
251251
margin-top: auto;
252252
margin-bottom: auto;
253253
display: none;
254-
position: relative;
254+
position: absolute;
255+
right: 4px;
255256

256257
&::before {
257258
top: 3px;
@@ -327,6 +328,16 @@ $activeBorderColor: $primary-content;
327328
}
328329
}
329330

331+
.mx_SpaceItem:not(.mx_SpaceItem_new) {
332+
.mx_SpaceButton:hover,
333+
.mx_SpaceButton:focus-within,
334+
.mx_SpaceButton_hasMenuOpen {
335+
&:not(.mx_SpaceButton_narrow):not(.mx_SpaceButton_invite) .mx_SpaceButton_name {
336+
max-width: calc(100% - 56px);
337+
}
338+
}
339+
}
340+
330341
/* root space buttons are bigger and not indented */
331342
& > .mx_AutoHideScrollbar {
332343
flex: 1;

0 commit comments

Comments
 (0)