Skip to content

Commit d230b82

Browse files
author
Adrien
committed
feat(catalog-ui): add max-height and overflow styles for filters panel
1 parent 19f4774 commit d230b82

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

apps/catalog-ui/src/components/smart-filter/LinidFavoritePanel.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,9 @@ const uiProps = computed<LinidFavoritePanelUIProps>(() => ({
189189
}));
190190
</script>
191191

192-
<style></style>
192+
<style>
193+
.linid-favorite-panel--list {
194+
max-height: 14rem;
195+
overflow-y: auto;
196+
}
197+
</style>

apps/catalog-ui/src/components/smart-filter/ListSearchFilterPanel.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
<template>
2828
<!-- v8 ignore start -->
2929
<div class="list-search-filter-panel">
30-
<q-list v-bind="uiProps.list">
30+
<q-list
31+
v-bind="uiProps.list"
32+
class="list-search-filter-panel--list"
33+
>
3134
<q-item
3235
v-for="item in props.items"
3336
:key="item.value"
@@ -108,4 +111,9 @@ function onSearch() {
108111
}
109112
</script>
110113

111-
<style scoped></style>
114+
<style scoped>
115+
.list-search-filter-panel .list-search-filter-panel--list {
116+
max-height: 13rem;
117+
overflow-y: auto;
118+
}
119+
</style>

apps/catalog-ui/src/components/smart-filter/TreeSearchFilterPanel.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,8 @@ onMounted(() => {
218218
.generic-tree-container {
219219
padding: 0;
220220
}
221+
.tree-search-filter-panel .generic-tree-container {
222+
max-height: 13rem;
223+
overflow-y: auto;
224+
}
221225
</style>

0 commit comments

Comments
 (0)