Skip to content

Commit 5513cbd

Browse files
committed
Use absolute positioning for DataHarmonizer help sidebar
1 parent 27e56d5 commit 5513cbd

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

web/src/views/SubmissionPortal/HarmonizerView.vue

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ const ColorKey = {
6262
},
6363
};
6464
65+
const HELP_SIDEBAR_WIDTH = '300px';
66+
6567
const EXPORT_FILENAME = 'nmdc_sample_export.xlsx';
6668
6769
const SAMP_NAME = 'samp_name';
@@ -466,6 +468,7 @@ export default defineComponent({
466468
467469
return {
468470
APP_HEADER_HEIGHT,
471+
HELP_SIDEBAR_WIDTH,
469472
ColorKey,
470473
HARMONIZER_TEMPLATES,
471474
columnVisibility,
@@ -831,14 +834,17 @@ export default defineComponent({
831834
<div
832835
class="harmonizer-style-container harmonizer-and-sidebar"
833836
>
834-
<div id="harmonizer-root" />
837+
<div
838+
id="harmonizer-root"
839+
:style="{
840+
'padding-right': sidebarOpen ? HELP_SIDEBAR_WIDTH : '0px',
841+
}"
842+
/>
835843

836844
<div
845+
class="harmonizer-sidebar"
837846
:style="{
838-
'width': sidebarOpen ? '300px' : '0px',
839-
'font-size': '14px',
840-
'position': 'relative',
841-
'flex-shrink': '0',
847+
'width': sidebarOpen ? HELP_SIDEBAR_WIDTH : '0px',
842848
}"
843849
>
844850
<v-btn
@@ -1077,14 +1083,21 @@ html {
10771083
}
10781084
10791085
.harmonizer-and-sidebar {
1080-
display: flex;
1081-
flex-direction: row;
1086+
position: relative;
10821087
width: 100%;
10831088
height: 100%;
10841089
flex-grow: 1;
10851090
overflow: auto;
10861091
}
10871092
1093+
.harmonizer-sidebar {
1094+
font-size: 14px;
1095+
position: absolute;
1096+
top: 0;
1097+
bottom: 0;
1098+
right: 0;
1099+
}
1100+
10881101
/* Grid */
10891102
#harmonizer-root {
10901103
width: 100%;

0 commit comments

Comments
 (0)