Browse Source

refactor: maintain the list height

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 1 year ago
parent
commit
95a6abe8ef
  1. 2
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  2. 2
      packages/nc-gui/components/virtual-cell/components/ListItems.vue

2
packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

@ -109,7 +109,7 @@ const onClick = (row: Row) => {
:body-style="{ padding: 0 }" :body-style="{ padding: 0 }"
wrap-class-name="nc-modal-child-list" wrap-class-name="nc-modal-child-list"
> >
<div class="max-h-[max(calc(100vh_-_300px)_,500px)] flex flex-col py-6"> <div class="h-[max(calc(100vh_-_300px)_,500px)] flex flex-col py-6">
<div class="flex mb-4 items-center gap-2 px-12"> <div class="flex mb-4 items-center gap-2 px-12">
<div class="flex-1" /> <div class="flex-1" />
<component <component

2
packages/nc-gui/components/virtual-cell/components/ListItems.vue

@ -198,7 +198,7 @@ watch(vModel, (nextVal) => {
:body-style="{ padding: 0 }" :body-style="{ padding: 0 }"
wrap-class-name="nc-modal-link-record" wrap-class-name="nc-modal-link-record"
> >
<div class="max-h-[max(calc(100vh_-_300px)_,500px)] flex flex-col py-6"> <div class="h-[max(calc(100vh_-_300px)_,500px)] flex flex-col py-6">
<div class="flex mb-4 items-center gap-2 px-12"> <div class="flex mb-4 items-center gap-2 px-12">
<a-input <a-input
ref="filterQueryRef" ref="filterQueryRef"

Loading…
Cancel
Save