Skip to content

Commit

Permalink
Merge pull request #372 from liam-hq/display_related_tables_with_fixed
Browse files Browse the repository at this point in the history
πŸ’„ feat: Sticky positioning for related tables in TableDetail
  • Loading branch information
MH4GF authored Dec 24, 2024
2 parents 5b88dfa + 31575c5 commit 877e07b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/curvy-carrots-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@liam-hq/erd-core": patch
"@liam-hq/cli": patch
---

πŸ’„ feat: Sticky positioning for related tables in TableDetail
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@
.body {
overflow-y: scroll;
}

.relatedTables {
position: sticky;
bottom: 0;
background-color: var(--pane-background, #232526);
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export const TableDetail: FC<Props> = ({ table }) => {
<Columns columns={table.columns} />
<Indices indices={table.indices} />
<Unique columns={table.columns} />
<RelatedTables key={table.name} table={table} />
<div className={styles.relatedTables}>
<RelatedTables key={table.name} table={table} />
</div>
</div>
</section>
)
Expand Down

0 comments on commit 877e07b

Please sign in to comment.