[TC Popup] Fix Calendar so it is not cutoff (#7596)

This commit is contained in:
Rukmini Bose (Ruki)
2024-03-18 16:28:09 -07:00
committed by GitHub
parent f189a4d602
commit b7b9ccbe65
5 changed files with 86 additions and 2 deletions

View File

@ -29,7 +29,7 @@
}"
>
<a class="c-icon-button icon-calendar" @click="toggle"></a>
<div v-if="open" class="c-menu c-menu--mobile-modal c-datetime-picker">
<div v-if="open" role="dialog" class="c-menu c-menu--mobile-modal c-datetime-picker">
<div class="c-datetime-picker__close-button">
<button class="c-click-icon icon-x-in-circle" @click="toggle"></button>
</div>

View File

@ -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"

View File

@ -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;
};
}
}
}