mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-12 15:11:10 +08:00
This commit is contained in:
parent
3ff44adf59
commit
83c44cf25b
@ -507,7 +507,6 @@
|
|||||||
|
|
||||||
&__label {
|
&__label {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@extend .fn__ellipsis;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__icon.fn__grab {
|
&__icon.fn__grab {
|
||||||
|
@ -210,13 +210,13 @@ export const toggleUpdateRelationBtn = (menuItemsElement: HTMLElement, avId: str
|
|||||||
const genSelectItemHTML = (type: "selected" | "empty" | "unselect", id?: string, isDetached?: boolean, text?: string) => {
|
const genSelectItemHTML = (type: "selected" | "empty" | "unselect", id?: string, isDetached?: boolean, text?: string) => {
|
||||||
if (type === "selected") {
|
if (type === "selected") {
|
||||||
return `<svg class="b3-menu__icon fn__grab"><use xlink:href="#iconDrag"></use></svg>
|
return `<svg class="b3-menu__icon fn__grab"><use xlink:href="#iconDrag"></use></svg>
|
||||||
<span class="b3-menu__label${isDetached ? "" : " popover__block"}" ${isDetached ? "" : 'style="color:var(--b3-protyle-inline-blockref-color)"'} data-id="${id}">${text}</span>
|
<span class="b3-menu__label fn__ellipsis ${isDetached ? "" : " popover__block"}" ${isDetached ? "" : 'style="color:var(--b3-protyle-inline-blockref-color)"'} data-id="${id}">${text}</span>
|
||||||
<svg class="b3-menu__action"><use xlink:href="#iconMin"></use></svg>`;
|
<svg class="b3-menu__action"><use xlink:href="#iconMin"></use></svg>`;
|
||||||
}
|
}
|
||||||
if (type === "empty") {
|
if (type === "empty") {
|
||||||
if (id) {
|
if (id) {
|
||||||
return `<button class="b3-menu__item" data-type="setRelationCell">
|
return `<button class="b3-menu__item" data-type="setRelationCell">
|
||||||
<span class="b3-menu__label">${window.siyuan.languages.newRowInRelation.replace("${x}", text).replace("${y}", id)}</span>
|
<span class="b3-menu__label fn__ellipsis">${window.siyuan.languages.newRowInRelation.replace("${x}", text).replace("${y}", id)}</span>
|
||||||
</button>`;
|
</button>`;
|
||||||
}
|
}
|
||||||
return `<button class="b3-menu__item">
|
return `<button class="b3-menu__item">
|
||||||
@ -225,7 +225,7 @@ const genSelectItemHTML = (type: "selected" | "empty" | "unselect", id?: string,
|
|||||||
}
|
}
|
||||||
if (type == "unselect") {
|
if (type == "unselect") {
|
||||||
return `<button data-id="${id}" class="b3-menu__item" data-type="setRelationCell">
|
return `<button data-id="${id}" class="b3-menu__item" data-type="setRelationCell">
|
||||||
<span class="b3-menu__label${isDetached ? "" : " popover__block"}" ${isDetached ? "" : 'style="color:var(--b3-protyle-inline-blockref-color)"'} data-id="${id}">${text}</span>
|
<span class="b3-menu__label fn__ellipsis${isDetached ? "" : " popover__block"}" ${isDetached ? "" : 'style="color:var(--b3-protyle-inline-blockref-color)"'} data-id="${id}">${text}</span>
|
||||||
<svg class="b3-menu__action"><use xlink:href="#iconAdd"></use></svg>
|
<svg class="b3-menu__action"><use xlink:href="#iconAdd"></use></svg>
|
||||||
</button>`;
|
</button>`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user