Custom Dataview Table Column Width

Things I have tried

So I have some inline fields in my Daily Diary note. I collect all the dreams and show them as a table in my Dream Journal MOC.

Dataview Query I used:

TABLE Lucid, Dream_Body
FROM "Journal"
WHERE Dream!=null
SORT file.day DESC

This is the result:

What I’m trying to do

I want all the rows to have some fixed column width and not let a particular column hog all the space. Also is there a way to truncate large text of my Dream_Body, showcasing only the first two-sentence and then showing the … symbol.

Hi.
Not a direct dataview thing. You need to explore CSS options (or work with other themes) to define a minimum width or similar (for example, try the Minimal theme, by @kepano, and see some settings related with table columns width).

1 Like

A somewhat hacky workaround for this: use a longer column name—as this influences the width of the column itself.

You can use a non-breaking unicode space symbol such as ideographic space (less frequently stripped): “ ” U+3000 Ideographic Space Unicode Character.

2 Likes

Confirmed - minimal theme does not have this problem with displaying dates

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.