Skip to content

Commit 6081404

Browse files
authored
feat: Don't hide scrollbar in BaseModalLayout (#7226)
## Summary - Add showScrollbar prop to BaseModalLayout component to control scrollbar visibility - Enable scrollbar in Templates dialog for better navigation when content overflows The original implementation used scrollbar-hide class by default. Since the intent behind hiding the scrollbar wasn't documented in the original PR (#5290), this change preserves the default behavior (showScrollbar: false) while allowing individual dialogs to opt-in to visible scrollbars. The Templates dialog specifically benefits from a visible scrollbar as it contains a large grid of template cards that requires scrolling. fix #6915 ## Screenshots (if applicable) <img width="2490" height="1097" alt="image" src="https://github.com/user-attachments/assets/711b060c-9752-4cee-84c0-d90210969f5a" /> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7226-feat-add-showScrollbar-prop-to-BaseModalLayout-2c36d73d365081b1b55bdcd50ca89030) by [Unito](https://www.unito.io)
1 parent 6820633 commit 6081404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/widget/layout/BaseModalLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const rightAreaClasses = computed(() => {
162162
})
163163
164164
const contentContainerClasses = computed(() => {
165-
return cn('min-h-0 px-6 pt-0 pb-10', 'overflow-y-auto scrollbar-hide')
165+
return cn('min-h-0 px-6 pt-0 pb-10', 'overflow-y-auto')
166166
})
167167
168168
const rightPanelClasses = computed(() => {

0 commit comments

Comments
 (0)