Skip to content

Commit

Permalink
Merge pull request #46 from mabeyj/fix-included-table-sticky-0.61
Browse files Browse the repository at this point in the history
Fix first table column not sticky in included note in Trilium v0.61
  • Loading branch information
mabeyj authored Sep 10, 2023
2 parents 7f83f27 + 7cab813 commit 5480a41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion src/view/TableView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5480a41

Please sign in to comment.