Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken cell wrapping on table #2470

Open
andreysvyat opened this issue Nov 4, 2024 · 1 comment
Open

Broken cell wrapping on table #2470

andreysvyat opened this issue Nov 4, 2024 · 1 comment
Labels
bug Something isn't working.

Comments

@andreysvyat
Copy link

andreysvyat commented Nov 4, 2024

What happened?

Broken cell wrapping on rendering table with group by and multiple columns.
Same problem with mobile version.
If table has 3 columns (i.e. group, first, second) and second wraps content, firs still rendering raw by raw. So first column doesn't match it's value at second column/

DQL

TABLE rows.file.link as link, date(rows.file.frontmatter.verify_at) as "Verify at"
FROM "Projects"
WHERE status != null 
and !contains(["Done", "Canceled"], status) 
and date(verify_at) <= date(today)
GROUP BY status

JS

No response

Dataview Version

0.5.67

Obsidian Version

1.7.4

OS

Linux

@andreysvyat andreysvyat added the bug Something isn't working. label Nov 4, 2024
@holroy
Copy link
Contributor

holroy commented Dec 28, 2024

When you do GROUP BY you collate all matching elements into rows, and loose any connection originally present in the original file set. So if you present any of the rows.something lists, they're completely unassociated with other lists. This can't be helped in current version, and is so by design, as you might want to build various sets related to other criterias then a one-to-one matching.

To keep the original note corresponding, you can't use GROUP BY, but should rather just use SORT status and live with the repeated values (unless you do some mighty CSS (or javascript) stuff to hide repeated values).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants