Skip to content

Commit 636b267

Browse files
committed
adjust sidebar styling for long filenames
1 parent 1e49b67 commit 636b267

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/styles/components/_sidebar.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
// not sure how to do this in a better way
7373
// it won't work if the file tree is too nested
7474
.file-item__spacer {
75+
flex-shrink: 0;
7576
.sidebar__file-item & {
7677
width: #{33 / $base-font-size}rem;
7778
.sidebar__file-item & {
@@ -122,10 +123,12 @@
122123
@include themify() {
123124
@extend %icon;
124125
padding: #{4 / $base-font-size}rem 0;
126+
background-color: map-get($theme-map, 'file-selected-color');
127+
padding-right: #{6 / $base-font-size}rem;
125128
}
126129
display: none;
127130
position: absolute;
128-
right: #{6 / $base-font-size}rem;
131+
right: 0;
129132
.sidebar__file-item--selected > .file-item__content & {
130133
display: inline-block;
131134
}

0 commit comments

Comments
 (0)