Browse Source

fix: scroll issue

pull/9799/head
DarkPhoenix2704 2 weeks ago
parent
commit
ea2c326b5c
  1. 6
      packages/nc-gui/components/smartsheet/Gallery.vue

6
packages/nc-gui/components/smartsheet/Gallery.vue

@ -330,8 +330,12 @@ const placeholderAboveHeight = computed(() => {
const visibleRowStart = Math.floor(scrollTop.value / (cardHeight.value + 12))
const startRecordIndex = Math.max(0, visibleRowStart - 2)
const placeholderHeight = startRecordIndex * (cardHeight.value + 12)
return startRecordIndex * (cardHeight.value + 12)
if (placeholderHeight > containerHeight.value) {
return containerHeight.value - cardHeight.value
}
return placeholderHeight
})
const { width, height } = useWindowSize()

Loading…
Cancel
Save