From 12a79dae96cde69d7e92b76e5e9489b8df4f9b6c Mon Sep 17 00:00:00 2001 From: John Chilton Date: Thu, 14 Mar 2024 11:17:30 -0400 Subject: [PATCH] Fix date range popover cutoff. Fixes https://github.com/galaxyproject/galaxy/issues/17711 --- .../History/Modals/SelectorModal.vue | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/client/src/components/History/Modals/SelectorModal.vue b/client/src/components/History/Modals/SelectorModal.vue index a15aedf55295..4c7be641955d 100644 --- a/client/src/components/History/Modals/SelectorModal.vue +++ b/client/src/components/History/Modals/SelectorModal.vue @@ -100,6 +100,17 @@ function selectHistories() { function setFilterValue(newFilter: string, newValue: string) { filter.value = HistoriesFilters.setFilterValue(filter.value, newFilter, newValue); } + +// hacky workaround for popovers in date pickers being cutoff +// https://github.com/galaxyproject/galaxy/issues/17711 +const modalBodyClasses = computed(() => { + return [ + "history-selector-modal-body", + showAdvanced.value + ? "history-selector-modal-body-allow-overflow" + : "history-selector-modal-body-prevent-overflow", + ]; +});