diff --git a/frontend/src/views/dashboard/editor/DashboardEditor.vue b/frontend/src/views/dashboard/editor/DashboardEditor.vue index 1ae353128..d4a4a49a8 100644 --- a/frontend/src/views/dashboard/editor/DashboardEditor.vue +++ b/frontend/src/views/dashboard/editor/DashboardEditor.vue @@ -140,6 +140,10 @@ const emits = defineEmits(['parentAddItemBox']) width: 100%; height: 100%; overflow-y: auto; + &::-webkit-scrollbar { + width: 0 !important; + height: 0 !important; + } :deep(.ed-empty__description) { width: 240px !important; } diff --git a/frontend/src/views/dashboard/editor/index.vue b/frontend/src/views/dashboard/editor/index.vue index 34f7b248b..98c80b3e4 100644 --- a/frontend/src/views/dashboard/editor/index.vue +++ b/frontend/src/views/dashboard/editor/index.vue @@ -40,7 +40,7 @@ const addComponent = (componentType: string, viewInfo?: any) => { component.propValue[0].title = t('dashboard.new_tab') component.activeTabName = subTabName } - component.y = maxYComponentCount() + 10 + component.y = maxYComponentCount() + 2 // @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment dashboardEditorInnerRef.value.addItemToBox(component) } diff --git a/frontend/src/views/dashboard/preview/SQPreview.vue b/frontend/src/views/dashboard/preview/SQPreview.vue index d386984bd..f616fcd97 100644 --- a/frontend/src/views/dashboard/preview/SQPreview.vue +++ b/frontend/src/views/dashboard/preview/SQPreview.vue @@ -142,6 +142,10 @@ defineExpose({ overflow-x: hidden; overflow-y: auto; position: relative; + &::-webkit-scrollbar { + width: 0 !important; + height: 0 !important; + } div::-webkit-scrollbar { width: 0 !important;