1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-02-04 11:04:22 +08:00
parent 27d8cbad48
commit 1b0d0db770
2 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,7 @@ Volcanos(chat.ONIMPORT, {
_window: function(can, item, cb) { if (!item.index) { return } _window: function(can, item, cb) { if (!item.index) { return }
item.height = can.ConfHeight()-125, item.width = can.ConfWidth()-200, item.left = (can.ConfWidth()-item.width)/2, item.top = 25 item.height = can.ConfHeight()-125, item.width = can.ConfWidth()-200, item.left = (can.ConfWidth()-item.width)/2, item.top = 25
if (can.ConfWidth() > 1400) { item.width = can.base.Min(can.ConfWidth()-600, 640, 1400), item.left = (can.ConfWidth()-item.width)/2 } if (can.ConfWidth() > 1400) { item.width = can.base.Min(can.ConfWidth()-600, 640, 1400), item.left = (can.ConfWidth()-item.width)/2 }
if (can.ConfWidth() < 800) { item.width = can.ConfWidth(), item.left = 0 } if (can.ConfWidth() < 1000) { item.width = can.ConfWidth(), item.left = 0 }
if (can.ConfHeight() > 800) { item.height = can.base.Min(can.ConfHeight()-200, 320, 800), item.top = 50 } if (can.ConfHeight() > 800) { item.height = can.base.Min(can.ConfHeight()-200, 320, 800), item.top = 50 }
if (can.user.isMobile) { item.height = can.ConfHeight()-125, item.top = 25, item.width = can.ConfWidth(), item.left = 0 } if (can.user.isMobile) { item.height = can.ConfHeight()-125, item.top = 25, item.width = can.ConfWidth(), item.left = 0 }
item.height = can.base.Max(html.DESKTOP_HEIGHT, item.height), item.width = can.base.Max(html.DESKTOP_WIDTH, item.width) item.height = can.base.Max(html.DESKTOP_HEIGHT, item.height), item.width = can.base.Max(html.DESKTOP_WIDTH, item.width)

View File

@ -6,6 +6,7 @@ Volcanos(chat.ONIMPORT, {
can.sup.onexport.link = function() { return can.misc.MergeURL(can, {pod: can.ConfSpace(), cmd: web.PORTAL}) } can.sup.onexport.link = function() { return can.misc.MergeURL(can, {pod: can.ConfSpace(), cmd: web.PORTAL}) }
can.Conf(html.PADDING, can.page.styleValueInt(can, "--portal-main-padding", can._output)) can.Conf(html.PADDING, can.page.styleValueInt(can, "--portal-main-padding", can._output))
can.require(["/plugin/local/wiki/word.js"]) can.require(["/plugin/local/wiki/word.js"])
can.Conf(html.PADDING, can.page.styleValueInt(can, "--portal-main-padding", can._output))
can.onmotion.clear(can), can.isCmdMode() && can.onappend.style(can, html.OUTPUT) can.onmotion.clear(can), can.isCmdMode() && can.onappend.style(can, html.OUTPUT)
can.ui = can.onappend.layout(can, [html.HEADER, [html.NAV, html.MAIN, html.ASIDE]], html.FLOW), can.onimport._scroll(can) can.ui = can.onappend.layout(can, [html.HEADER, [html.NAV, html.MAIN, html.ASIDE]], html.FLOW), can.onimport._scroll(can)
can.ui.header.innerHTML = msg.Append(html.HEADER), can.ui.nav.innerHTML = msg.Append(html.NAV) can.ui.header.innerHTML = msg.Append(html.HEADER), can.ui.nav.innerHTML = msg.Append(html.NAV)