Skip to content

Commit a80f7e8

Browse files
committed
style: update component styles for improved layout and readability across LineageGraph, TableEdge, and TableNode
1 parent 29ce1d7 commit a80f7e8

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/ldp/src/components/LineageGraph.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ provide('taskReplicateLagMap', taskReplicateLagMap)
426426
v-model:nodes="nodes"
427427
v-model:edges="edges"
428428
v-loading="loading"
429-
class="border rounded-xl bg-white dark:bg-overlay"
429+
class="border rounded-xl bg-white dark:bg-overlay text-xs"
430430
@nodes-initialized="handleLayoutGraph"
431431
@node-double-click="onNodeDoubleClick"
432432
>

packages/ldp/src/components/TableEdge.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const openTaskPopover = (ev: MouseEvent) => {
6767
class="nodrag nopan"
6868
>
6969
<div
70-
class="table-lineage-connection-label flex overflow-hidden rounded-lg bg-white dark:bg-overlay border"
70+
class="table-lineage-connection-label flex overflow-hidden rounded-lg bg-light dark:bg-overlay zoom-xs"
7171
>
7272
<div
7373
class="min-w-0 p-1 label-content clickable"
@@ -78,7 +78,7 @@ const openTaskPopover = (ev: MouseEvent) => {
7878
<OverflowTooltip
7979
:text="tasks[0].name"
8080
append-to="#table-lineage-graph"
81-
class="min-w-0"
81+
class="min-w-0 text-xs font-color-light"
8282
/>
8383
<!-- <span
8484
class="overflow-hidden clickable ellipsis px-1 rounded-4"
@@ -97,7 +97,7 @@ const openTaskPopover = (ev: MouseEvent) => {
9797
append-to="#table-lineage-graph"
9898
>
9999
<div
100-
class="inline-flex align-center gap-1 rounded-4 px-1 py-0.5"
100+
class="inline-flex align-center gap-1 rounded-4 px-1 py-0.5 zoom-xs"
101101
style="background-color: var(--bg-code)"
102102
>
103103
<el-icon class="font-color-sslight" size="12"

packages/ldp/src/components/TableNode.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ function handleTargetClick() {
8181
class="border rounded-2xl bg-white dark:bg-overlay shadow-sm table-node"
8282
:class="{ active }"
8383
>
84-
<div class="p-2">
84+
<div class="p-1.5">
8585
<template v-if="data.type === 'apiserverLineage'">
8686
<div class="flex align-center gap-2">
8787
<div
88-
class="p-1 bg-gray-100 dark:bg-white/15 rounded-lg flex align-center justify-center table-item-icon mt-0.5"
88+
class="p-1 bg-gray-100 dark:bg-white/15 rounded-lg flex align-center justify-center table-item-icon"
8989
>
90-
<el-icon size="18" class="font-color-sslight"
90+
<el-icon size="16" class="font-color-sslight"
9191
><i-lucide-link-2
9292
/></el-icon>
9393
</div>
@@ -107,11 +107,11 @@ function handleTargetClick() {
107107
</div>
108108
</template>
109109
<template v-else>
110-
<div class="flex align-items-start gap-2">
110+
<div class="flex align-items-center gap-1.5">
111111
<div
112-
class="p-1 bg-gray-100 dark:bg-white/15 rounded-lg flex align-center justify-center table-item-icon mt-0.5"
112+
class="p-1 bg-gray-100 dark:bg-white/15 rounded-lg flex align-center justify-center table-item-icon"
113113
>
114-
<el-icon size="18" class="font-color-light"
114+
<el-icon size="16" class="font-color-light"
115115
><i-lucide-table
116116
/></el-icon>
117117
</div>

packages/ldp/src/composables/useLayout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function useLayout() {
2222
dagreGraph.setDefaultEdgeLabel(() => ({}))
2323

2424
const isHorizontal = direction === 'LR'
25-
dagreGraph.setGraph({ nodesep: 220, ranksep: 220, rankdir: direction })
25+
dagreGraph.setGraph({ nodesep: 60, ranksep: 160, rankdir: direction })
2626

2727
previousDirection.value = direction
2828

0 commit comments

Comments
 (0)