diff --git a/css/backoffice/components/_search-form.scss b/css/backoffice/components/_search-form.scss index 55af12889..9bbf52397 100644 --- a/css/backoffice/components/_search-form.scss +++ b/css/backoffice/components/_search-form.scss @@ -21,6 +21,8 @@ $ibo-search-form-panel--more-criteria--color: $ibo-color-blue-grey-800 !default; $ibo-search-form-panel--more-criteria--background-color: $ibo-color-white-100 !default; $ibo-search-form-panel--more-criteria--icon--color: $ibo-color-primary-600 !default; $ibo-search-form-panel--more-criteria--border-color: $ibo-search-form-panel--criteria--border-color !default; +// calc is redundant but avoid SCSS min() from being used instead of CSS min() +$ibo-search-form-panel--criteria--max-height: calc(min(#{$ibo-size-750}, 50vh)) !default; $ibo-search-form-panel--items--hover--color: $ibo-color-grey-200 !default; @@ -278,9 +280,10 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search } .sfc_form_group { - display: block; - margin-top: -1px; - z-index: -1; + display: flex; + flex-direction: column; + margin-top: -1px; + z-index: -1; } } @@ -346,11 +349,15 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search display: none; max-width: 450px; width: max-content; - max-height: 520px; + max-height: $ibo-search-form-panel--criteria--max-height; overflow-x: auto; overflow-y: hidden; .sfc_fg_operators { + display: flex; + flex-direction: column; + overflow: auto; + min-height: 0; font-size: 12px; .sfc_fg_operator { @@ -387,6 +394,9 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search } .sfc_opc_multichoices { + display: flex; + flex-direction: column; + height: 100%; label > input { vertical-align: text-top; margin-left: $ibo-spacing-0; @@ -398,7 +408,6 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search } .sfc_opc_mc_items_wrapper { - max-height: 415px; /* Must be less than .sfc_form_group:max-height - .sfc_opc_mc_toggler:height - .sfc_opc_mc_filter:height */ overflow-y: auto; margin: $ibo-spacing-0 -8px; /* Compensate .sfc_opc_multichoices side padding so the hover style can take the full with */ @@ -560,8 +569,14 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search &.search_form_criteria_enum { .sfc_form_group { .sfc_fg_operator_in { + display: flex; + flex-direction: column; + height: 100%; + min-height: 0; > label { - display: inline-block; + display: flex; + height: 100%; + min-height: 0; width: 100%; line-height: initial; white-space: nowrap; diff --git a/sources/Application/UI/Base/Layout/ActivityPanel/ActivityPanelFactory.php b/sources/Application/UI/Base/Layout/ActivityPanel/ActivityPanelFactory.php index db9d8ea07..96c425af8 100644 --- a/sources/Application/UI/Base/Layout/ActivityPanel/ActivityPanelFactory.php +++ b/sources/Application/UI/Base/Layout/ActivityPanel/ActivityPanelFactory.php @@ -152,6 +152,7 @@ class ActivityPanelFactory if (false === empty($aRelatedTriggersIDs)) { // - Prepare query to retrieve events $oNotifEventsSearch = DBObjectSearch::FromOQL('SELECT EN FROM EventNotification AS EN JOIN Action AS A ON EN.action_id = A.id WHERE EN.trigger_id IN (:triggers_ids) AND EN.object_id = :object_id'); + $oNotifEventsSearch->AllowAllData(); $oNotifEventsSet = new DBObjectSet($oNotifEventsSearch, ['id' => false], ['triggers_ids' => $aRelatedTriggersIDs, 'object_id' => $sObjId]); $oNotifEventsSet->SetLimit(MetaModel::GetConfig()->Get('max_history_length'));