Skip to content

Commit 9ce3dfa

Browse files
committed
fix: enhance connection name display in NodePanel component
- Updated the NodePanel.vue to ensure connection names are fully visible with truncation handling. - Adjusted CSS for connection tags to improve layout and responsiveness.
1 parent 8a26edd commit 9ce3dfa

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

packages/dag/src/components/NodePanel.vue

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,15 @@ function onDescChange() {
225225
@change="onNameChange"
226226
/>
227227
<template v-if="node.type === 'table' || node.type === 'database'">
228-
<el-tag class="px-1" :disable-transitions="true">
229-
<div class="flex align-center gap-0.5">
230-
<span class="flex align-center gap-0.5">
228+
<el-tag class="px-1 min-w-0 connection-tag" :disable-transitions="true">
229+
<div class="flex align-center gap-0.5 min-w-0">
230+
<span class="flex align-center gap-0.5 min-w-0">
231231
<el-icon>
232232
<i-lucide-database />
233233
</el-icon>
234-
{{ node.attrs.connectionName }}
234+
<span class="text-truncate min-w-0">
235+
{{ node.attrs.connectionName }}
236+
</span>
235237
</span>
236238
<el-button
237239
text
@@ -320,6 +322,18 @@ function onDescChange() {
320322
321323
.node-panel {
322324
$tabHeight: 40px;
325+
326+
:deep(.connection-tag) {
327+
max-width: 100%;
328+
min-width: 0;
329+
}
330+
331+
:deep(.connection-tag .el-tag__content) {
332+
display: flex;
333+
max-width: 100%;
334+
min-width: 0;
335+
}
336+
323337
:deep(.form-wrap) {
324338
&,
325339
> form,

0 commit comments

Comments
 (0)