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

Please enteImprove database visualization when there is a one-to-many (1:N) relationship #13692

Open
Wil24555 opened this issue Dec 31, 2024 · 5 comments
Assignees

Comments

@Wil24555
Copy link

In what scenarios do you need this feature?

The aim is to improve the visualization of the database when the relationship is one to many. I would like the visualization to be the same as the multi-select attribute selection system, including the same color system.

In the current view, it is a little confusing to see that an author is related to two books, when only viewing the author database, as per the example.
Visão atual

Describe the optimal solution

Relação um para muitos

Describe the candidate solution

No response

Other information

No response

@TCOTC
Copy link
Contributor

TCOTC commented Dec 31, 2024

@Vanessa219 我觉得可以用这个样式:

.av__cell:not(.av__cell--header)[data-dtype="relation"] .av__celltext:hover {
    border-bottom: 2px solid var(--b3-border-color);
}
.av__cell:not(.av__cell--header)[data-dtype="relation"] .av__celltext:not(:last-of-type)::after {
    content: ",";
}

@Vanessa219
Copy link
Member

#12865 逗号是这个里面去的

@TCOTC
Copy link
Contributor

TCOTC commented Jan 2, 2025

逗号改用伪元素挺好的

@Vanessa219
Copy link
Member

以前是有逗号,因为 #12865 去除了,现在的问题是有必要再加上么,如果加上,以后是不是又需要再移除。

@TCOTC
Copy link
Contributor

TCOTC commented Jan 2, 2025

之前那个逗号会影响自定义 CSS 所以去除了,改成伪元素逗号的话就不会影响了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants