Repository navigation
v0.2.3: configurable overflow-wrap for table cells
·
2 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Installation
Download variable-content-width.css and place it in your Obsidian snippets folder:
- Open Obsidian Settings → Appearance → CSS Snippets
- Click the folder icon to open snippets folder
- Place
variable-content-width.cssin the folder - Refresh the snippets list and enable "Variable Content Width"
See README.md for full documentation.
What's Changed
Added
- Configurable Table Cell Text Wrapping: New overflow-wrap controls for table cells
- Added
--vcw-set-table-head-overflow-wrapCSS variable for table header cells - Added
--vcw-set-table-body-overflow-wrapCSS variable for table body cells - Style Settings integration with dropdown options:
break-word(default, recommended): Breaks words only when necessary to prevent overflownormal: Only breaks at spaces (standard behavior, may cause overflow)anywhere: Breaks at any character to prevent overflow
- Prevents horizontal overflow in tables with long URLs, code snippets, or compound words
- Applies to both preview mode and source/editor mode
- Especially useful in narrow panels and split-pane layouts
- Added
Changed
- CSS Refactoring: Improved code maintainability with modern CSS nesting
- Refactored
preview.csstable selectors to use nested syntax - Refactored
source.csstable editor selectors to use nested syntax
- Refactored
Full Changelog: v0.2.2...v0.2.3