From f462d5eca567e5772d3041c5d288081e5cc48007 Mon Sep 17 00:00:00 2001 From: shy Date: Wed, 24 Jan 2024 09:29:37 +0800 Subject: [PATCH] add some --- base/web/store.css | 2 +- base/web/store.go | 2 +- base/web/store.js | 7 ++----- core/wiki/portal.css | 5 ++++- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/base/web/store.css b/base/web/store.css index 9b61e55f..76b29c0b 100644 --- a/base/web/store.css +++ b/base/web/store.css @@ -1,4 +1,4 @@ -fieldset.web.store.plug>div.output>div.project { width:120px; flex:0 0 120px; } +fieldset.web.store>div.output>div.project { width:160px; flex:0 0 160px; } fieldset.web.store>div.output>div.layout>div.layout>div.content>div.item div.title div.label { font-size:var(--status-font-size); font-weight:normal; margin-top:var(--input-margin); } fieldset.web.store>div.output>div.layout>div.layout>div.content>div.item div.title div.label span { padding:var(--input-padding); padding-right:var(--input-margin); } fieldset.web.store>div.output>div.layout>div.layout>div.content>div.item div.content { height:70px; } diff --git a/base/web/store.go b/base/web/store.go index 15032ab2..8b218383 100644 --- a/base/web/store.go +++ b/base/web/store.go @@ -16,7 +16,7 @@ const STORE = "store" func init() { Index.MergeCommands(ice.Commands{ - STORE: {Help: "系统商店", Actions: ice.MergeActions(ice.Actions{ + STORE: {Name: "store", Help: "系统商店", Actions: ice.MergeActions(ice.Actions{ mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) { m.Cmds(SPIDE).Table(func(value ice.Maps) { kit.If(value[CLIENT_TYPE] == nfs.REPOS, func() { m.Push("", value, arg[0]) }) }) }}, diff --git a/base/web/store.js b/base/web/store.js index c5ffaeea..19a25b7e 100644 --- a/base/web/store.js +++ b/base/web/store.js @@ -33,10 +33,7 @@ Volcanos(chat.ONIMPORT, { })) }, layout: function(can) { - can.ui.layout(can.ConfHeight(), can.ConfWidth()) - // can.page.style(can, can.ui.project, html.HEIGHT, can.ConfHeight()) - // can.page.style(can, can.ui.content, html.HEIGHT, can.ConfHeight()) - // can.page.style(can, can._output, html.HEIGHT, can.ConfHeight(), html.WIDTH, can.ConfWidth()) - can.onlayout.expand(can, can.ui.content, can.user.isMobile && !can.user.isLandscape()? can.ConfWidth(): 320) + can.user.isMobile && can.onmotion.toggle(can, can.ui.project, can.user.isLandscape()) + can.ui.layout(can.ConfHeight(), can.ConfWidth()), can.onlayout.expand(can, can.ui.content, 320) }, }, [""]) diff --git a/core/wiki/portal.css b/core/wiki/portal.css index e0bd844a..ad3f7e39 100644 --- a/core/wiki/portal.css +++ b/core/wiki/portal.css @@ -7,6 +7,8 @@ fieldset.web.wiki.portal>div.output { padding:0; } fieldset.web.wiki.portal>div.output>div.header { background-color:rgb(22 31 49); height:var(--portal-header-height); --hover-bg-color:var(--plugin-bg-color); } fieldset.web.wiki.portal>div.output>div.header div.story[data-name=navmenu] { display:flex; justify-content:center; } fieldset.web.wiki.portal>div.output>div.header div.story[data-name=navmenu] div.item { text-align:center; padding:var(--legend-padding); height:var(--portal-header-height); } +fieldset.web.wiki.portal>div.output>div.header div.story[data-name=navmenu] div.item:first-child { line-height:calc(var(--portal-header-height) - 2 * var(--legend-padding)); } +body.mobile fieldset.web.wiki.portal.cmd>div.output>div.header div.story[data-name=navmenu] div.item { line-height:calc(var(--portal-header-height) - 2 * var(--legend-padding)); } fieldset.web.wiki.portal>div.output>div.header div.story[data-name=navmenu] div.item.select { background-color:var(--output-bg-color); } fieldset.web.wiki.portal>div.output>div.header div.story[data-name=navmenu] div.item:hover { background-color:var(--output-bg-color); } fieldset.web.wiki.portal>div.output>div.header div.story[data-name=navmenu] div.item.space { padding:0px; margin:0 var(--portal-main-padding); } @@ -49,5 +51,6 @@ fieldset.web.wiki.portal>div.output>div.header div.list { display:flex; } body.mobile fieldset.web.wiki.portal { --portal-main-padding:10px; --legend-padding:10px; } body.mobile fieldset.web.wiki.portal>div.output>div.layout { display:block; } -body.mobile fieldset.web.wiki.portal>div.output>div.layout>div.nav { height:unset; } +body.mobile fieldset.web.wiki.portal>div.output>div.layout>div.nav { height:400px; } body.mobile fieldset.web.wiki.portal>div.output>div.layout>div.main { height:unset; } +body.width2 fieldset.web.wiki.portal>div.output>div.layout>div.main>div.flex { flex-direction:column; }