mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
3c00382811
commit
65fe6a8312
3 changed files with 16 additions and 3 deletions
|
|
@ -406,8 +406,14 @@
|
|||
padding: 0 4px;
|
||||
border-right: 0;
|
||||
|
||||
&:hover .block__icon {
|
||||
opacity: 0;
|
||||
.block__icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&[data-dtype="mAsset"],
|
||||
&[data-dtype="mSelect"],
|
||||
&[data-dtype="select"] {
|
||||
margin-left: -2px;
|
||||
}
|
||||
|
||||
&:hover .b3-chip[data-type=block-more] {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,12 @@
|
|||
width: 16px;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
&[data-type="mAsset"],
|
||||
&[data-type="mSelect"],
|
||||
&[data-type="select"] {
|
||||
padding-left: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
&__avheader {
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@ import {duplicateNameAddOne} from "../../../util/functions";
|
|||
import {Dialog} from "../../../dialog";
|
||||
import {escapeAriaLabel, escapeAttr, escapeHtml} from "../../../util/escape";
|
||||
import {getFieldsByData} from "./view";
|
||||
import {hasClosestByClassName} from "../../util/hasClosest";
|
||||
|
||||
export const getColId = (element: Element, viewType: TAVView) => {
|
||||
if (viewType === "table") {
|
||||
if (viewType === "table" || hasClosestByClassName(element, "custom-attr")) {
|
||||
return element.getAttribute("data-col-id");
|
||||
} else if (viewType === "gallery") {
|
||||
return element.getAttribute("data-field-id");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue