From 7cab8139907069ead71071aa2f464615cc7164e6 Mon Sep 17 00:00:00 2001 From: Jimmy Mabey Date: Sat, 9 Sep 2023 19:52:52 -0300 Subject: [PATCH] Fix table sticky column in v0.61 included notes CKEditor styles overriding the sticky column of table body when embedded via included note. --- CHANGELOG.md | 1 + src/view/TableView.scss | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b9bbe1..5db1b54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - For Trilium v0.61.0 to v0.61.5, `$dateCreated` is not available and `$dateModified` will display the modification date of the note's content and not the note itself. - If you are using the v0.61 beta, upgrade to at least v0.61.6 for these dates to work as intended. - Fix the `header` attribute setting displaying the attribute name instead of an empty header cell when set to an empty value (`#attribute=name,header=`). +- Fix the first column of table views not being sticky when displayed in an included note in Trilium v0.61+. ## 1.2.0 - 2023-01-22 diff --git a/src/view/TableView.scss b/src/view/TableView.scss index 31ce056..07ca68c 100644 --- a/src/view/TableView.scss +++ b/src/view/TableView.scss @@ -27,8 +27,12 @@ white-space: nowrap; } -.collection-view-table tr > :first-child { +.table.collection-view-table tr > :first-child { + // Higher specificity necessary to override default CKEditor styles. position: sticky; +} + +.collection-view-table tr > :first-child { left: 0; z-index: 1; }