style(Dashboard): update dashboard style (#110)

This commit is contained in:
王嘉豪
2025-09-03 17:33:52 +08:00
committed by GitHub
parent e29d6df7b3
commit bfe565f0fa
3 changed files with 9 additions and 1 deletions
@@ -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;
}
@@ -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)
}
@@ -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;