File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed
web/src/views/SubmissionPortal Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ const ColorKey = {
62
62
},
63
63
};
64
64
65
+ const HELP_SIDEBAR_WIDTH = ' 300px' ;
66
+
65
67
const EXPORT_FILENAME = ' nmdc_sample_export.xlsx' ;
66
68
67
69
const SAMP_NAME = ' samp_name' ;
@@ -466,6 +468,7 @@ export default defineComponent({
466
468
467
469
return {
468
470
APP_HEADER_HEIGHT ,
471
+ HELP_SIDEBAR_WIDTH ,
469
472
ColorKey ,
470
473
HARMONIZER_TEMPLATES ,
471
474
columnVisibility ,
@@ -831,14 +834,17 @@ export default defineComponent({
831
834
<div
832
835
class =" harmonizer-style-container harmonizer-and-sidebar"
833
836
>
834
- <div id =" harmonizer-root" />
837
+ <div
838
+ id =" harmonizer-root"
839
+ :style =" {
840
+ 'padding-right': sidebarOpen ? HELP_SIDEBAR_WIDTH : '0px',
841
+ }"
842
+ />
835
843
836
844
<div
845
+ class =" harmonizer-sidebar"
837
846
:style =" {
838
- 'width': sidebarOpen ? '300px' : '0px',
839
- 'font-size': '14px',
840
- 'position': 'relative',
841
- 'flex-shrink': '0',
847
+ 'width': sidebarOpen ? HELP_SIDEBAR_WIDTH : '0px',
842
848
}"
843
849
>
844
850
<v-btn
@@ -1077,14 +1083,21 @@ html {
1077
1083
}
1078
1084
1079
1085
.harmonizer-and-sidebar {
1080
- display : flex ;
1081
- flex-direction : row ;
1086
+ position : relative ;
1082
1087
width : 100% ;
1083
1088
height : 100% ;
1084
1089
flex-grow : 1 ;
1085
1090
overflow : auto ;
1086
1091
}
1087
1092
1093
+ .harmonizer-sidebar {
1094
+ font-size : 14px ;
1095
+ position : absolute ;
1096
+ top : 0 ;
1097
+ bottom : 0 ;
1098
+ right : 0 ;
1099
+ }
1100
+
1088
1101
/* Grid */
1089
1102
#harmonizer-root {
1090
1103
width : 100% ;
You can’t perform that action at this time.
0 commit comments