Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 13 additions & 16 deletions app/src/assets/scss/business/_av.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
&:empty::after {
color: var(--b3-theme-on-surface-light);
content: attr(data-tip);
pointer-events: none;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

伪元素影响了光标样式

image

}
}

Expand Down Expand Up @@ -383,19 +384,19 @@
transition: background 100ms ease-out;
white-space: nowrap;
font-size: 85%;
min-height: 23px;
padding: 5px 4px;
padding: 10px 5px;
Copy link
Contributor Author

@TCOTC TCOTC Jun 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前的边距太窄了,有点难看,参考 Notion 把整体边距改到 10px


&:hover {
.b3-chip[data-type="block-more"] {
top: 4px;
display: block;
top: 5px;
margin: 0;
z-index: 1;
}
}

.av__cell {
padding: 2px 4px;
padding: 2px 5px;
border-right: 0;
min-height: calc(1.625em + 4px);

Expand All @@ -420,23 +421,19 @@
cursor: default;
}

&[data-dtype="mAsset"],
&[data-dtype="mSelect"],
&[data-dtype="select"] {
margin-left: -2px;
.b3-chip {
margin: 3px 6px 3px 0;
}

.av__cellassetimg {
margin: 3px 6px 3px 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

解决 单选、多选、资源字段 的边距问题

}
}

&--edit .av__cell {
padding: 2px 4px !important;
min-height: calc(1.625em + 4px) !important;

&[data-dtype="mAsset"][data-empty="true"],
&[data-dtype="mSelect"][data-empty="true"],
&[data-dtype="select"][data-empty="true"] {
margin-left: 0;
}

.b3-menu__avemoji {
display: none;
}
Expand Down Expand Up @@ -704,7 +701,7 @@
}

.b3-chip {
margin: 1px 2px;
margin: 1px 4px 1px 0;
padding: 2px 6px;
line-height: calc(1.625em - 6px);
font-size: inherit;
Expand Down Expand Up @@ -984,7 +981,7 @@
img.av__cellassetimg {
max-height: calc(1.625em - 2px);
border-radius: var(--b3-border-radius);
margin: 1px 2px;
margin: 1px 4px 1px 0;
max-width: none;
vertical-align: top;
font-size: inherit;
Expand Down
2 changes: 1 addition & 1 deletion app/src/assets/scss/business/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
}

.b3-chip {
margin: 1px 2px;
margin: 1px 4px 1px 0;
}

.av__cellassetimg {
Expand Down
2 changes: 1 addition & 1 deletion app/src/assets/scss/protyle/_protyle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
&:empty::after {
content: attr(data-tip);
color: var(--b3-theme-on-surface-light);
cursor: text;
pointer-events: none;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

跟前面伪元素影响光标样式的问题使用一致的解决方法

}

&:focus {
Expand Down