Skip to content

Commit

Permalink
Fix #7594
Browse files Browse the repository at this point in the history
  • Loading branch information
rukmini-bose committed Mar 15, 2024
1 parent 5fc5c13 commit 6f4bf97
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/timeConductor/TimePopupFixed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/>
<date-picker
v-if="isUTCBased"
class="c-ctrl-wrapper--menus-left"
class="c-ctrl-wrapper--menus-right"
:default-date-time="formattedBounds.start"
:formatter="timeFormatter"
@date-selected="startDateSelected"
Expand Down
6 changes: 6 additions & 0 deletions src/plugins/timeConductor/conductor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,12 @@
color: $colorTimeRealtimeFg;
}
}
.c-ctrl-wrapper--menus-up{ // A bit hacky, but we are rewriting the CSS class here for ITC such that the calendar opens at the bottom to avoid cutoff
.c-menu {
top: auto;
bottom: revert !important;
};
}
}
}

Expand Down
14 changes: 14 additions & 0 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,20 @@
}
}

&[class*='--menus-down'] {
.c-menu {
top: auto;
bottom: 100%;
}
}

&[class*='--menus-right'] {
.c-menu {
left: 0;
right: auto;
}
}

&[class*='--menus-left'],
&[class*='menus-to-left'] {
.c-menu {
Expand Down

0 comments on commit 6f4bf97

Please sign in to comment.