1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 01:04:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-03-06 01:36:42 +08:00
parent 2eb2940fad
commit 263d9a4145
4 changed files with 10 additions and 5 deletions

View File

@ -73,7 +73,7 @@ body {
body.en { --card-button:3; } body.en { --card-button:3; }
body.mobile { --footer-height:60px; --qrcode-height:284px; --svg-font-size:13px; } body.mobile { --footer-height:60px; --qrcode-height:284px; --svg-font-size:13px; }
body.width1 { /* 320-640 手机竖屏 */ body.width1 { /* 320-640 手机竖屏 */
--river-width:280px; --project-width:120px; --input-width:80px; --url-input-width:160px; --form-width:320px; --river-width:280px; --project-width:120px; --input-width:80px; --url-input-width:160px; --form-width:290px;
--river-margin:0; --plugin-margin:0; --button-margin:5px; --river-margin:0; --plugin-margin:0; --button-margin:5px;
--table-button:2; --card-button:3; --table-button:2; --card-button:3;
--legend-margin:5px; --legend-margin:5px;

View File

@ -1,7 +1,7 @@
fieldset.Header>div.output { line-height:21px; height:var(--header-height); overflow:hidden; } fieldset.Header>div.output { line-height:21px; height:var(--header-height); overflow:hidden; }
fieldset.Header>div.output div.item { background-color:var(--panel-output-bg-color); padding:13.5px; height:var(--header-height); float:left; } fieldset.Header>div.output div.item { background-color:var(--panel-output-bg-color); padding:13.5px; height:var(--header-height); float:left; }
fieldset.Header>div.output div.item.title:first-child { font-size:var(--legend-font-size); font-style:italic; font-weight:bold; white-space:pre; overflow:hidden; } fieldset.Header>div.output div.item.title:first-child { font-size:var(--legend-font-size); font-style:italic; font-weight:bold; white-space:pre; overflow:hidden; }
fieldset.Header>div.output div.item.title img { height:var(--action-height); width:var(--action-height); } fieldset.Header>div.output div.item.title img { padding:0; height:var(--action-height); width:var(--action-height); }
fieldset.Header>div.output div.item.layout>i { margin-left:var(--input-padding); } fieldset.Header>div.output div.item.layout>i { margin-left:var(--input-padding); }
fieldset.Header>div.output div.item.layout:not(:hover)>i { visibility:hidden; } fieldset.Header>div.output div.item.layout:not(:hover)>i { visibility:hidden; }
fieldset.Header>div.output div.item.layout { padding-right:0; } fieldset.Header>div.output div.item.layout { padding-right:0; }

View File

@ -45,6 +45,9 @@ Volcanos(chat.ONACTION, {list: [mdb.CREATE, web.SHARE, web.REFRESH], _init: func
share: function(event, can) { can.core.CallFunc(can.ondetail.share, {event: event, can: can}) }, share: function(event, can) { can.core.CallFunc(can.ondetail.share, {event: event, can: can}) },
onsize: function(can, height) { var margin = 68, _margin = margin onsize: function(can, height) { var margin = 68, _margin = margin
can.page.style(can, can._output, html.MARGIN, "0px", html.HEIGHT, "", html.MAX_HEIGHT, "") can.page.style(can, can._output, html.MARGIN, "0px", html.HEIGHT, "", html.MAX_HEIGHT, "")
if (can.user.isMobile || !can.user.isTechOrRoot(can)) {
margin = 0
}
if (can._output.offsetHeight < height-margin) { if (can._output.offsetHeight < height-margin) {
margin += (height-margin-can._output.offsetHeight)/2 margin += (height-margin-can._output.offsetHeight)/2
} else { } else {
@ -147,7 +150,7 @@ Volcanos(chat.ONENGINE, {
if (cmds.length != 1 && cmds[1] != chat.STORM) { return false } var river = list[cmds[0]]; if (!river) { return false } if (cmds.length != 1 && cmds[1] != chat.STORM) { return false } var river = list[cmds[0]]; if (!river) { return false }
can.core.ItemOrder(river.storm, mdb.ORDER, function(key, value) { if (!value) { return } can.core.ItemOrder(river.storm, mdb.ORDER, function(key, value) { if (!value) { return }
if (value.nodetype && value.nodetype != can.user.info.nodetype) { return } if (value.nodetype && value.nodetype != can.user.info.nodetype) { return }
if (can.user.info.userrole == aaa.ROOT || can.base.isIn(value.type||"", "", aaa.VOID, can.user.info.userrole)) { if (can.base.isIn(can.user.info.userrole, value.type||aaa.VOID, aaa.TECH, aaa.ROOT)) {
msg.Push({hash: key, name: can.user.isEnglish(can)? key: value.name||(can.user.trans(can, key)+" "+key), icon: value.icon||icon[key]||"", main: value.main||false}) msg.Push({hash: key, name: can.user.isEnglish(can)? key: value.name||(can.user.trans(can, key)+" "+key), icon: value.icon||icon[key]||"", main: value.main||false})
} }
}), can.base.isFunc(cb) && cb(msg); return true }), can.base.isFunc(cb) && cb(msg); return true

View File

@ -44,7 +44,9 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.Conf(html.PADDI
}); select && select.click() }); select && select.click()
}, },
field: function(can, meta, target) { var item = can.base.Obj(meta.meta) field: function(can, meta, target) { var item = can.base.Obj(meta.meta)
var padding = 2*can.Conf(html.PADDING); if (can.user.isMobile && !can.isCmdMode()) { padding *= 2 } var padding = 2*can.Conf(html.PADDING);
// if (can.user.isMobile && !can.isCmdMode() && can.ConfIndex() == web.PORTAL) { padding *= 2 }
// if (can.user.isMobile && !can.isCmdMode()) { padding *= 2 }
if (!item.width || parseInt(item.width) > can.ConfWidth()) { item.width = can.ConfWidth()-padding } if (!item.width || parseInt(item.width) > can.ConfWidth()) { item.width = can.ConfWidth()-padding }
var width = item.width var width = item.width
can.onappend.plugin(can, item, function(sub) { can._plugins = (can._plugins||[]).concat([sub]) can.onappend.plugin(can, item, function(sub) { can._plugins = (can._plugins||[]).concat([sub])