Skip to content

Commit 6e77f9b

Browse files
committed
let user resize sidebar
1 parent 54b4c73 commit 6e77f9b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/javascript/components/navbar/ExamNavbar.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,24 @@
1111
}
1212

1313
.transition {
14-
transition: 0.35s width ease-in-out;
14+
transition: 0.35s max-width ease-in-out, 0.35s min-width ease-in-out;
1515
}
1616

1717
.sidebar-small {
1818
width: calc(6em + 2px);
19+
min-width: calc(6em + 2px);
20+
max-width: calc(6em + 2px);
1921
}
2022

2123
.sidebar-expanded {
22-
width: 500px;
24+
min-width: 500px;
25+
max-width: 100%;
26+
resize: horizontal;
27+
overflow: auto;
2328
}
2429

2530
.width-0 {
26-
width: 0;
31+
max-width: 0;
2732
}
2833

2934
.collapse:not(.width):not(.show) {

0 commit comments

Comments
 (0)