From dc9cce075597040a968120ecc0ddb45c3fd3fccc Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 6 Feb 2024 17:56:30 +0800 Subject: [PATCH] opt aaa --- frame.js | 7 +++---- index.css | 1 + panel/header.css | 4 ++-- plugin/table.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frame.js b/frame.js index d1232673..d99d2c2f 100644 --- a/frame.js +++ b/frame.js @@ -254,7 +254,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) { full: !can.isCmdMode() && "切换全屏", open: !can.isCmdMode() && "打开链接", qrcode: !can.isCmdMode() && "生成链接", - chat: can.misc.Search(can, ice.MSG_DEBUG) == ice.TRUE && "发送聊天", + // chat: can.misc.Search(can, ice.MSG_DEBUG) == ice.TRUE && "发送聊天", help: can.page.ClassList.has(can, can._fields||can._target, html.PLUGIN) && can.Conf("_help") && can.Conf("_help") != "" && "查看文档", vimer: can.page.ClassList.has(can, can._fields||can._target, html.PLUGIN) && can.Conf("_fileline") && can.misc.Search(can, ice.MSG_DEBUG) == ice.TRUE && "查看源码", }, function(key, value) { @@ -363,7 +363,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) { var name = can.core.Split(item.nick||item.name||"").pop()||""; can.base.isIn(name, tcp.SERVER, tcp.CLIENT, web.STUDIO, web.SERVICE, mdb.SEARCH, ) && (name = (item.index||"").split(".").slice(-2).join(".")), (type != html.PLUG) && (name = can.core.Keys(item.space||item._space, name)) - var title = item.title || (item.help && item.help != name && !can.user.isEnglish(can)? name+"("+can.core.Split(item.help)[0]+")": name) + var title = item.title || (can.user.isMobile? item.help: (item.help && item.help != name && !can.user.isEnglish(can)? name+"("+can.core.Split(item.help)[0]+")": name)) target = can.base.isFunc(target)? target(): target return can.page.Append(can, target||can._output, [{view: [type, html.FIELDSET], style: item.style, list: [{type: html.LEGEND, list: [item.icon && {icon: item.icon}, {text: title}]}, {view: [html.OPTION, html.FORM]}, html.ACTION, html.OUTPUT, html.STATUS]}]) }, @@ -781,8 +781,7 @@ Volcanos(chat.ONLAYOUT, {_init: function(can, target) { target = target||can._ro return layout }, _float: function(can) { var target = can._fields||can._target, sup = can._fields? can.sup: can - var height = can.base.Max(html.FLOAT_HEIGHT, can.page.height()-can.getHeaderHeight()-html.ACTION_HEIGHT), - width = can.base.Max(html.FLOAT_WIDTH, can.page.width()-can.getRiverWidth()) + var height = can.base.Max(html.FLOAT_HEIGHT, can.page.height()-can.getHeaderHeight()-html.ACTION_HEIGHT), width = can.base.Max(html.FLOAT_WIDTH, can.page.width()-can.getRiverWidth()) sup.onimport.size(sup, height, width, false), can.onappend.style(can, html.FLOAT) can.onmotion.resize(can, target, function(height, width) { sup.onimport.size(sup, height, width, false) }, can.getHeaderHeight(), can.getRiverWidth()) var left = can.getRiverWidth()+html.PLUGIN_MARGIN+html.PLUGIN_PADDING+(can.user.mod.isCmd? 0: 120), top = can.page.height()/4; if (can.user.isMobile) { left = 0 } diff --git a/index.css b/index.css index c730d23c..b4ea7929 100644 --- a/index.css +++ b/index.css @@ -529,6 +529,7 @@ div.item.button.refresh>span.icon { font-size:28px; line-height:28px; height:var body.windows div.item.button.refresh>span.icon { font-size:22px; line-height:30px; } div.item.button._space.icons { margin-left:20px; flex-grow:1; } div.item.button._space.icons:hover { background-color:unset; cursor:unset; } +fieldset.inner fieldset.story div.item.button._space.icons { margin-left:0; flex-grow:1; } div.tabs>span { font-style:italic; } div.tabs>span.icon { font-size:var(--icon-font-size); font-style:normal; padding-left:var(--input-padding); visibility:hidden; } div.tabs.select>span.icon { visibility:visible; } diff --git a/panel/header.css b/panel/header.css index d4f21581..312f6af9 100644 --- a/panel/header.css +++ b/panel/header.css @@ -34,8 +34,8 @@ body:not(.width6) fieldset.Header.tabview>div.output>div.Action>div.item.dream { body:not(.width6) fieldset.Header.tabview>div.output>div.Action>div.item.desktop { display:none; } body:not(.width6) fieldset.Header>div.output>div.Action>div.item.portal { display:none; } body:not(.width6) fieldset.Header>div.output>div.item.language { display:none; } -body.width2>fieldset.Header>div.output div.item:not(.usernick):not(.avatar) { padding:13.5px 5px; } -body.width3>fieldset.Header>div.output div.item:not(.usernick):not(.avatar) { padding:13.5px 5px; } +/* body.width2>fieldset.Header>div.output div.item:not(.usernick):not(.avatar) { padding:13.5px 5px; } */ +/* body.width3>fieldset.Header>div.output div.item:not(.usernick):not(.avatar) { padding:13.5px 5px; } */ body.width3>fieldset.Header>div.output>div.item.time { display:none; } body.width3>fieldset.Header>div.output>div.item.avatar { margin-right:var(--plugin-margin); } body.width3>fieldset.Header>div.output div.Action>div.tabs { padding-left:0; } diff --git a/plugin/table.js b/plugin/table.js index 1ae45c9f..bb58b064 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -134,7 +134,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { {text: item.nick||item.name||item.zone}], title: item.title, onclick: function(event) { can.onmotion.select(can, target, html.DIV_ITEM, event.currentTarget) cb(event, event.currentTarget, event.currentTarget._list && can.onmotion.toggle(can, event.currentTarget._list)) - can.user.isMobile && oncontextmenu(event) + // can.user.isMobile && oncontextmenu(event) }, oncontextmenu: oncontextmenu, }]); return ui._target },