Skip to content

Commit a8ecabe

Browse files
committed
Fix long sidebar labels
1 parent dfeba17 commit a8ecabe

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: less/forum/sideNav.less

+11-3
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,28 @@
1313
margin: 2px 0;
1414

1515
> a {
16+
--icon-size: 30px;
1617
padding: 6px;
17-
display: flex;
18+
display: grid;
19+
grid-template-columns: var(--icon-size) 1fr;
1820
align-items: center;
1921
border-radius: 25px;
2022
transition: background-color 0.4s, color 0.4s;
2123
font-size: 14px;
24+
grid-gap: 10px;
2225

2326
.Button-icon {
24-
.asirem-icon-block(30px);
27+
.asirem-icon-block(var(--icon-size));
2528
float: none;
26-
margin: 0 10px 0 0;
29+
margin: 0;
2730
border-radius: 100%;
2831
transition: background-color 0.4s;
2932
}
33+
34+
.Button-label {
35+
overflow: hidden;
36+
text-overflow: ellipsis;
37+
}
3038
}
3139

3240
&.active {

0 commit comments

Comments
 (0)