drbap / magicuser-theme-for-obsidian

MagicUser theme for Obsidian.md (light and dark themes)
MIT License
29 stars 0 forks source link

Snippet for 100% width of Dataview tables? #54

Open ReaderGuy42 opened 19 hours ago

ReaderGuy42 commented 19 hours ago

Hi, I'm trying to figure out which snippet of your theme is responsible for increasing the width of Dataview tables.

I'd love a way to increase the width of all Dataview tables to 100% without a specific cssclass, but regular text should retain its default width.

Any pointers?

Thanks!

drbap commented 8 hours ago

Hi. Thanks for stopping by. You can have markdown tables and dataview tables with 100% width and normal note text with usual width (readable line length) but this feature currently works on reading mode only.

Add cssclasses property on the note you want to have the 100% tables width and write tw100 (tables -> width 100%) and/or tcw100 (tables and callouts -> width 100%). Tables will have 100% width in reading mode (markdown and dataview tables).

Note: if you are using MagicUser theme you should download theme version 20.8.2, because some adjustments were made for dataview tables (reading mode).

Maybe in the future I will add this feature for live preview and source modes.

All the best

ReaderGuy42 commented 52 minutes ago

I'm OK just using this in reading mode for now (though I'd love to be able to use the feature in Live Preview eventually), but would you be able to share which snippet does this?

I really like your theme, but I'd love to be able to use it with another one too. I switch sometimes.