Skip to content

Commit

Permalink
Show column types in table nodes when the table is highlighted
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Dec 20, 2024
1 parent f4c6be3 commit ee77b3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions frontend/.changeset/hungry-dots-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@liam-hq/erd-core": patch
"@liam-hq/cli": patch
---

Show column types in table nodes when the table is highlighted
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
transition: opacity 300ms var(--default-timing-function);
}

:global([data-erd='table-node']):hover .columnType {
:global([data-erd='table-node-highlighted']) .columnType {
opacity: 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const TableNode: FC<Props> = ({ data }) => {
isTableHighlighted && styles.wrapperHighlighted,
isActive && styles.wrapperActive,
)}
data-erd="table-node"
data-erd={isTableHighlighted && 'table-node-highlighted'}
>
<TableHeader data={data} />
{showMode === 'ALL_FIELDS' && <TableColumnList data={data} />}
Expand Down

0 comments on commit ee77b3f

Please sign in to comment.