Skip to content

Commit 6e82b96

Browse files
authored
Merge pull request #54499 from nextcloud/backport/54434/stable31
[stable31] fix(core): unified search is cut off on small window
2 parents 24f0259 + 8943e34 commit 6e82b96

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

core/src/components/UnifiedSearch/UnifiedSearchModal.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<template>
66
<NcDialog id="unified-search"
77
ref="unifiedSearchModal"
8+
class="unified-search-modal-root"
89
content-classes="unified-search-modal__content"
910
dialog-classes="unified-search-modal"
1011
:name="t('core', 'Unified search')"
@@ -708,13 +709,12 @@ export default defineComponent({
708709
</script>
709710

710711
<style lang="scss" scoped>
711-
:deep(.unified-search-modal .unified-search-modal__content) {
712-
--dialog-height: min(80vh, 800px);
712+
.unified-search-modal-root :deep(.modal-container) {
713713
box-sizing: border-box;
714-
height: var(--dialog-height);
715-
max-height: var(--dialog-height);
716-
min-height: var(--dialog-height);
714+
height: min(80vh, 800px);
715+
}
717716
717+
:deep(.unified-search-modal .unified-search-modal__content) {
718718
display: flex;
719719
flex-direction: column;
720720
// No padding to prevent scrollbar misplacement

dist/core-unified-search.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-unified-search.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)