Skip to content

Improve relation and rollup style in database #13692

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

Closed
Wil24555 opened this issue Dec 31, 2024 · 9 comments
Closed

Improve relation and rollup style in database #13692

Wil24555 opened this issue Dec 31, 2024 · 9 comments
Assignees
Milestone

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 所以去除了,改成伪元素逗号的话就不会影响了

@Vanessa219
Copy link
Member

汇总也有这个问题,汇总估计还是需要和 notion 一样用逗号分割,关联的话可以用图标分割。

@TCOTC
Copy link
Contributor

TCOTC commented Jan 4, 2025

用什么图标?

Vanessa219 added a commit that referenced this issue Jan 4, 2025
@Vanessa219
Copy link
Member

image

Vanessa219 added a commit that referenced this issue Jan 4, 2025
@Vanessa219 Vanessa219 added this to the 3.1.19 milestone Jan 4, 2025
@TCOTC
Copy link
Contributor

TCOTC commented Jan 6, 2025

issue 标题需要改一下

@Vanessa219 Vanessa219 changed the title Please enteImprove database visualization when there is a one-to-many (1:N) relationship Improve relation and rollup style in database Jan 7, 2025
mouyase pushed a commit to mouyase/siyuan that referenced this issue Feb 28, 2025
mouyase pushed a commit to mouyase/siyuan that referenced this issue Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants