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

Commit 009f5f2

Browse files
authored
Fix space panel layout edge cases (#7101)
1 parent 6cae176 commit 009f5f2

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

res/css/structures/_SpacePanel.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ $activeBorderColor: $secondary-content;
144144
align-items: center;
145145
border-radius: 12px;
146146
padding: 4px;
147-
width: 100%;
147+
width: calc(100% - 32px);
148148
}
149149

150150
.mx_SpaceButton_name {
@@ -160,6 +160,7 @@ $activeBorderColor: $secondary-content;
160160

161161
.mx_SpaceButton_toggleCollapse {
162162
width: $gutterSize;
163+
min-width: $gutterSize;
163164
height: 20px;
164165
mask-position: center;
165166
mask-size: 20px;
@@ -221,7 +222,7 @@ $activeBorderColor: $secondary-content;
221222
height: 20px;
222223
margin-top: auto;
223224
margin-bottom: auto;
224-
visibility: hidden;
225+
display: none;
225226
position: relative;
226227

227228
&::before {
@@ -270,15 +271,11 @@ $activeBorderColor: $secondary-content;
270271
}
271272
}
272273

273-
.mx_SpaceButton_narrow .mx_SpaceButton_menuButton {
274-
display: none;
275-
}
276-
277274
.mx_SpaceButton:hover,
278275
.mx_SpaceButton:focus-within,
279276
.mx_SpaceButton_hasMenuOpen {
280-
&:not(.mx_SpaceButton_invite) .mx_SpaceButton_menuButton {
281-
visibility: visible;
277+
&:not(.mx_SpaceButton_narrow):not(.mx_SpaceButton_invite) .mx_SpaceButton_menuButton {
278+
display: block;
282279
}
283280
}
284281

0 commit comments

Comments
 (0)