File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
app/javascript/components/workflows/student/exams/show/components/navbar Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const NavAccordionItem: React.FC<NavAccordionItemProps> = (props) => {
3636 onClick = { ( ) : void => onSectionClick ( eventKey ) }
3737 >
3838 < RenderIcon I = { Icon } className = "" />
39- < span aria-hidden = "true" className = "width -0" > </ span >
39+ < span aria-hidden = "true" className = "mw -0" > </ span >
4040 < Collapse
4141 in = { expanded }
4242 dimension = "width"
Original file line number Diff line number Diff line change 11.sidebar-small {
2- width : var (--sidebar-small );
2+ transition : 0.35s max-width ease-in-out, 0.35s min-width ease-in-out;
3+ min-width : var (--sidebar-small );
4+ max-width : var (--sidebar-small );
35}
46
57.sidebar-expanded {
6- width : var (--sidebar-expanded );
8+ transition : 0.35s max-width ease-in-out, 0.35s min-width ease-in-out;
9+ min-width : var (--sidebar-expanded );
10+ max-width : 50% ;
11+ resize : horizontal;
12+ overflow : auto;
13+ }
14+
15+ .mw-0 {
16+ max-width : 0 ;
717}
818
919.collapse : not (.width ): not (.show ) {
Original file line number Diff line number Diff line change @@ -87,9 +87,7 @@ const ExamNavbar: React.FC<{
8787 const additionalClass = expanded ? 'sidebar-expanded' : 'sidebar-small' ;
8888 return (
8989 < div
90- id = "sidebar"
9190 className = { `
92- transition
9391 bg-dark
9492 text-white
9593 float-left
@@ -111,7 +109,7 @@ const ExamNavbar: React.FC<{
111109 Hourglass
112110 </ h1 >
113111 </ Collapse >
114- < h1 aria-hidden = "true" className = "width -0" > </ h1 >
112+ < h1 aria-hidden = "true" className = "mw -0" > </ h1 >
115113 < Button
116114 className = "ml-2"
117115 onClick = { ( ) : void => {
You can’t perform that action at this time.
0 commit comments