From ff1fe91b766b733b716984b016623949575020c1 Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 30 May 2025 08:36:27 +0800 Subject: [PATCH] add some --- index.css | 2 +- plugin/table.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.css b/index.css index e5d771f8..d17d5b87 100644 --- a/index.css +++ b/index.css @@ -182,7 +182,7 @@ div.output.card>div.item:hover { background-color:var(--plugin-bg-color); color: div.output.card>div.item.stop { color:var(--disable-fg-color); } div.output.card>div.item>div.title { border-bottom:var(--box-border); font-size:var(--legend-font-size); font-weight:bold; padding-bottom:var(--input-padding); align-items:center; } div.output.card>div.item>div.title>div.title { overflow:auto } -div.output.card>div.item>div.title>div.title>span { padding:var(--input-padding); white-space:pre; } +div.output.card>div.item>div.title>div.title>span { padding:0 var(--input-padding); white-space:pre; } div.output.card>div.item>div.title>div.title>span.exists { color:var(--notice-bg-color); } div.output.card>div.item>div.title>img { height:var(--header-height); width:var(--header-height); margin:0; float:left; } div.output.card>div.item>div.title>img.jpg { padding:var(--input-padding); } diff --git a/plugin/table.js b/plugin/table.js index c91859fc..204fe927 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -16,8 +16,8 @@ Volcanos(chat.ONIMPORT, { return {view: [[html.ITEM, value.type, value.status, "s-"+value.name]], list: [ {view: ["title", html.DIV], list: [ img && {className: can.base.contains(img, ".jpg")? "jpg": "", img: img}, - {view: wiki.TITLE, list: [{text: value.name}, value.exists == "true" && {text: ["●", "", "exists"]}]}, - value.help && {view: wiki.TITLE, list: [{text: value.help}]}, + {view: wiki.TITLE, list: [value.help && {text: value.help}, {text: value.name}, value.exists == "true" && {text: ["●", "", "exists"]}]}, + // value.help && {view: wiki.TITLE, list: [{text: value.help}]}, can.onappend.label(can, value), ]}, {view: [wiki.CONTENT, html.DIV, value.text]}, {view: html.ACTION, inner: value.action, _init: function(target) { can.onappend.mores(can, target, value, html.CARD_BUTTON)