Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update tree styles (#8349)

boojack131a7566b3bd
diff --git a/frontend/src/components/SchemaEditorV1/Aside/BranchTree.vue b/frontend/src/components/SchemaEditorV1/Aside/BranchTree.vue
index 58618cf625..8fc7d9a4bc 100644
--- a/frontend/src/components/SchemaEditorV1/Aside/BranchTree.vue
+++ b/frontend/src/components/SchemaEditorV1/Aside/BranchTree.vue
@@ -607,13 +607,13 @@ const handleDropdownClickoutside = (e: MouseEvent) => {
<style>
.schema-designer-database-tree .n-tree-node-wrapper {
- @apply !py-px;
+ @apply !p-0;
}
-.schema-designer-database-tree .n-tree-node-content__prefix {
- @apply shrink-0 !mr-1;
+.schema-designer-database-tree .n-tree-node-content {
+ @apply !pl-2 text-sm;
}
-.schema-designer-database-tree .n-tree-node-content__text {
- @apply truncate mr-1;
+.schema-designer-database-tree .n-tree-node-indent {
+ width: 0.25rem;
}
.schema-designer-database-tree .n-tree-node-content__suffix {
@apply rounded-sm !hidden hover:opacity-80;
diff --git a/frontend/src/components/SchemaEditorV1/Aside/DatabaseTree.vue b/frontend/src/components/SchemaEditorV1/Aside/DatabaseTree.vue
index d85e1db7ee..c9149c21b4 100644
--- a/frontend/src/components/SchemaEditorV1/Aside/DatabaseTree.vue
+++ b/frontend/src/components/SchemaEditorV1/Aside/DatabaseTree.vue
@@ -830,18 +830,18 @@ const handleExpandedKeysChange = (expandedKeys: string[]) => {
};
</script>
-<style>
+<style lang="postcss">
.schema-editor-database-tree .n-tree-node-wrapper {
- @apply !py-px;
+ @apply !p-0;
}
-.schema-editor-database-tree .n-tree-node-content__prefix {
- @apply shrink-0 !mr-1;
+.schema-editor-database-tree .n-tree-node-content {
+ @apply !pl-2 text-sm;
}
-.schema-editor-database-tree .n-tree-node-content__text {
- @apply truncate mr-1;
+.schema-editor-database-tree .n-tree-node-indent {
+ width: 0.25rem;
}
-.schema-editor-database-tree .n-tree-node-content__suffix {
- @apply rounded-sm !hidden hover:opacity-80;
+.schema-editor-database-tree .n-tree-node-content__prefix {
+ @apply shrink-0 !mr-1;
}
.schema-editor-database-tree
.n-tree-node-wrapper:hover