mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
This commit is contained in:
parent
66294c23b8
commit
84f884dff2
1 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ const getKanbanTitleHTML = (group: IAVView, counter: number) => {
|
||||||
}
|
}
|
||||||
// av__group-name 为第三方需求,本应用内没有使用,但不能移除 https://github.com/siyuan-note/siyuan/issues/15736
|
// av__group-name 为第三方需求,本应用内没有使用,但不能移除 https://github.com/siyuan-note/siyuan/issues/15736
|
||||||
return `<div class="av__group-title">
|
return `<div class="av__group-title">
|
||||||
<span class="av__group-name">${nameHTML}</span>
|
<span class="av__group-name fn__ellipsis" style="white-space: nowrap;">${nameHTML}</span>
|
||||||
${counter === 0 ? '<span class="fn__space"></span>' : `<span aria-label="${window.siyuan.languages.total}" data-position="north" class="av__group-counter ariaLabel">${counter}</span>`}
|
${counter === 0 ? '<span class="fn__space"></span>' : `<span aria-label="${window.siyuan.languages.total}" data-position="north" class="av__group-counter ariaLabel">${counter}</span>`}
|
||||||
<span class="fn__flex-1"></span>
|
<span class="fn__flex-1"></span>
|
||||||
<span class="av__group-icon ariaLabel" data-type="av-add-top" data-position="north" aria-label="${window.siyuan.languages.newRow}"><svg><use xlink:href="#iconAdd"></use></svg></span>
|
<span class="av__group-icon ariaLabel" data-type="av-add-top" data-position="north" aria-label="${window.siyuan.languages.newRow}"><svg><use xlink:href="#iconAdd"></use></svg></span>
|
||||||
|
|
@ -193,12 +193,12 @@ export const renderKanban = async (options: {
|
||||||
}
|
}
|
||||||
const view: IAVGallery = data.view as IAVKanban;
|
const view: IAVGallery = data.view as IAVKanban;
|
||||||
let bodyHTML = "";
|
let bodyHTML = "";
|
||||||
let isSelectGroup = true;
|
let isSelectGroup = false;
|
||||||
view.groups.forEach((group: IAVKanban) => {
|
view.groups.forEach((group: IAVKanban) => {
|
||||||
if (group.groupHidden === 0) {
|
if (group.groupHidden === 0) {
|
||||||
let selectBg = "";
|
let selectBg = "";
|
||||||
if (group.fillColBackgroundColor) {
|
if (group.fillColBackgroundColor) {
|
||||||
let color = ""
|
let color = "";
|
||||||
if (["mSelect", "select"].includes(group.groupValue.type)) {
|
if (["mSelect", "select"].includes(group.groupValue.type)) {
|
||||||
isSelectGroup = true;
|
isSelectGroup = true;
|
||||||
color = getComputedStyle(document.documentElement).getPropertyValue(`--b3-font-background${group.groupValue.mSelect[0].color}`);
|
color = getComputedStyle(document.documentElement).getPropertyValue(`--b3-font-background${group.groupValue.mSelect[0].color}`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue