Created
May 21, 2023 00:13
-
-
Save kylehughes/b2f83d7ed5ba58b173e01ea5312851cf to your computer and use it in GitHub Desktop.
CSS for Dataview in Obsidian to give maximum width to the first column, prevent all columns from wrapping, and truncate the first column when necessary.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.table-view-table { | |
width: 100%; | |
} | |
.table-view-table td:not(:first-child) { | |
white-space: nowrap; | |
} | |
.table-view-table tr td:first-child, tr th:first-child { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
max-width: 0; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
neat! Thanks for this