Skip to content

Commit ef2f3d3

Browse files
committed
Fix sidebar text overflow when resized
1 parent fd7229d commit ef2f3d3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/components/CategoryList/CategoryList.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
border-left: 1px solid #3e87b2;
1414

1515
a {
16-
display: block;
16+
display: flex;
17+
align-items: center;
1718
padding-left: 12px;
1819
height: 20px;
19-
line-height: 20px;
2020
color: #8fb9cf;
2121
font-size: 12px;
2222

@@ -33,12 +33,11 @@
3333

3434
&:first-of-type {
3535
@include DosisFont;
36-
float: right;
37-
width: 50px;
36+
flex: 0 0 50px;
3837
text-align: right;
3938
}
4039
&:last-of-type {
41-
margin-right: 50px;
40+
flex: 1 1 auto;
4241
overflow: hidden;
4342
text-overflow: ellipsis;
4443
white-space: nowrap;

src/components/Sidebar/Sidebar.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ a.subitem {
330330
color: white;
331331

332332
> *:first-child {
333+
overflow: hidden;
334+
text-overflow: ellipsis;
335+
width: 100%;
333336
position: absolute;
334337
letter-spacing: 2px;
335338
line-height: 12px;

0 commit comments

Comments
 (0)