Skip to content

Commit

Permalink
[feat]optimize scroll bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Of-qinhai committed Jan 14, 2025
1 parent 7f01fda commit 7a03c73
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/components/community/modules/BaseModelGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,10 @@
items: rows.value,
itemSize: rowHeight.value,
style: {
<<<<<<< HEAD
height: '100%',
=======
maxHeight: 'calc(100vh - 200px)',
height: 'auto'
>>>>>>> 1094ae3dd940f985557e3b0668fa5bbe2ec9babe
},
itemResizable: true,
ignoreItemResize: false,
<<<<<<< HEAD
scrollable: false
}))
Expand All @@ -182,16 +176,6 @@
scrollContainer.value.scrollTo({ top: 0, behavior: 'smooth' })
}
}
=======
scrollbarProps: {
trigger: 'none'
}
}))
const backToTop = () => {
virtualListInst.value?.scrollTo({ top: 0 })
}
>>>>>>> 1094ae3dd940f985557e3b0668fa5bbe2ec9babe
watch(
() => props.cacheKey,
Expand Down Expand Up @@ -326,7 +310,7 @@
/* :deep(.v-vl-items) {
padding-bottom: 200px !important;
} */
}
@media (min-width: 1650px) {
.grid {
Expand All @@ -339,7 +323,7 @@
/* :deep(.v-vl-items) {
padding-bottom: 100px !important;
} */
}
.grid-container {
position: relative;
Expand All @@ -356,15 +340,15 @@
/* :deep(.v-vl-items) {
padding-bottom: 220px !important;
} */
}
:deep(.n-virtual-list::-webkit-scrollbar-track) {
background: transparent;
}
/* :deep(.v-vl-items) {
padding-bottom: 240px !important;
} */
}
.grid-container {
position: relative;
Expand Down

0 comments on commit 7a03c73

Please sign in to comment.