Feature Request: add possibility to style td and th
See original GitHub issueWould it be possible to give td
and th
elements a part="metatable-td"
or part="metatable-th"
attribute so we can have control over their styling via ::part? I wanted to change some things at the level of td
and th
, like for example setting overflow: hidden
for long URLs (to avoid the scrollbar) and also centering the values (they seem a bit skewed towards the top, not centered, but this may be caused by something else).
This could also apply to other intermediate elements, but I didn’t have a use case for it. Is there a technical constraint here somewhere? I tried doing this in developer tools and it worked
Awesome plugin btw, it removes the need for some dataview weird syntax, and makes obsidian closer to some notion functionalities I was used to 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
I found a small problem with the
part
attribute in some cases. I have an entry in some of my notes’ frontmatter that looks like this:The plugin creates an embedded table. In this case, the inner keys and values get the part attribute, i.e., Friday, “9:45 → 11:15”, Tuesday, and “9:45 → 11:15” get the attribute, but the
th
Days
and thetd
that contains the embedded table do not get it.Version 0.10.3 fixes the missing key/value parts, aims to fix the slight vertical skew in keys and, you convinced me, adds parts for
link
,external-link
andinternal-link
in case you want to remove underlining.