From 01b353d548a5d16019ad50e1065d7f15f8c1c7ae Mon Sep 17 00:00:00 2001 From: shy Date: Sun, 28 Jan 2024 19:11:23 +0800 Subject: [PATCH] add some --- index.css | 6 +++--- panel/header.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.css b/index.css index 468a3f35..da904356 100644 --- a/index.css +++ b/index.css @@ -85,7 +85,7 @@ body.width3 { /* 960-1280 平板横屏 */ } body.width4 { /* 1280-1600 笔记本 显示器调试 */ --table-button:4; - --card-height:150; + --card-height:120; } body.width5 { /* 1600-1920 */ --table-button:4; @@ -604,8 +604,8 @@ body.print fieldset.draw div.output div.content svg { background-color:lightgray /* misc */ fieldset.story.web.chat.wx.agent { position:fixed; left:0; bottom:0; } fieldset.story>form.option>div.item.text.path>input { width:var(--input-width); } -fieldset.cmd>div.output>fieldset.xterm.story>form.option>div.item.hash input { width:var(--plug-width); } -fieldset.cmd>div.output>fieldset.iframe.story>form.option>div.item.hash input { width:var(--plug-width); } +div.output>fieldset.xterm.story>form.option>div.item.hash input { width:var(--form-width); } +div.output>fieldset.iframe.story>form.option>div.item.hash input { width:var(--form-width); } fieldset.Action:not(.horizon):not(.grid)>fieldset.plugin>form.option>div.item.text.path>input { width:var(--project-width); } body:not(.debug) fieldset.plugin.can._notfound { display:none; } fieldset.inner.float>div.status { display:none; } diff --git a/panel/header.js b/panel/header.js index eb6249a6..27e863bb 100644 --- a/panel/header.js +++ b/panel/header.js @@ -44,7 +44,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { background: function(event, can, background) { can.user.isExtension || can.user.isLocalFile || can.runAction(event, aaa.BACKGROUND, [background], function(msg) { can.user.info.background = background, can.onimport._background(can, msg), can.user.toastSuccess(can) }) }, - theme: function(can, theme) { theme && can.runAction({}, chat.THEME, [theme]) + theme: function(can, theme) { theme && theme != ice.AUTO && can.runAction({}, chat.THEME, [theme]) theme && can.misc.localStorage(can, "can.theme", can._theme = theme == ice.AUTO? "": theme) && can.onengine.signal(can, chat.ONTHEMECHANGE, can.request(event, {theme: theme})) theme = can.onexport.theme(can); var list = [html.LIGHT, html.WHITE] var change = can.page.ClassList.has(can, document.body, theme); can.user.theme(can, theme), change || can.onimport._const(can)