Skip to content

Commit 126f46a

Browse files
committed
style(Dashboard): update dashboard style
1 parent 32d5169 commit 126f46a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

frontend/src/views/dashboard/editor/DashboardEditor.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ const emits = defineEmits(['parentAddItemBox'])
140140
width: 100%;
141141
height: 100%;
142142
overflow-y: auto;
143+
&::-webkit-scrollbar {
144+
width: 0 !important;
145+
height: 0 !important;
146+
}
143147
:deep(.ed-empty__description) {
144148
width: 240px !important;
145149
}

frontend/src/views/dashboard/editor/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const addComponent = (componentType: string, viewInfo?: any) => {
4040
component.propValue[0].title = t('dashboard.new_tab')
4141
component.activeTabName = subTabName
4242
}
43-
component.y = maxYComponentCount() + 10
43+
component.y = maxYComponentCount() + 2
4444
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
4545
dashboardEditorInnerRef.value.addItemToBox(component)
4646
}

frontend/src/views/dashboard/preview/SQPreview.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ defineExpose({
142142
overflow-x: hidden;
143143
overflow-y: auto;
144144
position: relative;
145+
&::-webkit-scrollbar {
146+
width: 0 !important;
147+
height: 0 !important;
148+
}
145149
146150
div::-webkit-scrollbar {
147151
width: 0 !important;

0 commit comments

Comments
 (0)