question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: add possibility to style td and th

See original GitHub issue

Would 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:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cbr9commented, Jun 3, 2021

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:

Days:
  Friday: "9:45 → 11:15"
  Tuesday: "9:45 → 11:15"

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 the td that contains the embedded table do not get it.

0reactions
arnaucommented, Jun 3, 2021

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 and internal-link in case you want to remove underlining.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] ability to modify VDataTable cell's ... - GitHub
Problem to solve When i create a datatable, i pass a headers and a item array to it. If i want to add...
Read more >
Styling tables - Learn web development | MDN
Styling an HTML table isn't the most glamorous job in the world, but sometimes we all have to do it. This article provides...
Read more >
How To Style a Table with CSS | DigitalOcean
In this tutorial, you will run through an example of styling a element. The first half will focus on a common table layout...
Read more >
Can we add Markdown support for tables?
I don't think we need to request support for tables via Markdown specifically, but I agree that tables would be helpful. On several...
Read more >
Tables in HTML documents
Table rows: The TR element; Table cells: The TH and TD elements ... Here's a simple table that illustrates some of the features...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found