mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 10:50:15 +01:00
Revert "Adjust the style of the first column of the attribute view" (#10143)
This commit is contained in:
parent
9691c4218c
commit
a48c2fbcf8
7 changed files with 35 additions and 56 deletions
|
|
@ -13,7 +13,7 @@ export const selectRow = (checkElement: Element, type: "toggle" | "select" | "un
|
|||
const useElement = checkElement.querySelector("use");
|
||||
if (rowElement.classList.contains("av__row--header") || type === "unselectAll") {
|
||||
if ("#iconCheck" === useElement.getAttribute("xlink:href")) {
|
||||
rowElement.parentElement.querySelectorAll(".av__check").forEach(item => {
|
||||
rowElement.parentElement.querySelectorAll(".av__firstcol").forEach(item => {
|
||||
item.querySelector("use").setAttribute("xlink:href", "#iconUncheck");
|
||||
const rowItemElement = hasClosestByClassName(item, "av__row");
|
||||
if (rowItemElement) {
|
||||
|
|
@ -21,7 +21,7 @@ export const selectRow = (checkElement: Element, type: "toggle" | "select" | "un
|
|||
}
|
||||
});
|
||||
} else {
|
||||
rowElement.parentElement.querySelectorAll(".av__check").forEach(item => {
|
||||
rowElement.parentElement.querySelectorAll(".av__firstcol").forEach(item => {
|
||||
item.querySelector("use").setAttribute("xlink:href", "#iconCheck");
|
||||
const rowItemElement = hasClosestByClassName(item, "av__row");
|
||||
if (rowItemElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue