From 1b0d0db770dfa94b15aa397c2cae6441a68c4c0e Mon Sep 17 00:00:00 2001 From: shy Date: Sun, 4 Feb 2024 11:04:22 +0800 Subject: [PATCH] add some --- core/chat/macos/desktop.js | 2 +- core/wiki/portal.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/chat/macos/desktop.js b/core/chat/macos/desktop.js index 20f899fc..42c4604f 100644 --- a/core/chat/macos/desktop.js +++ b/core/chat/macos/desktop.js @@ -70,7 +70,7 @@ Volcanos(chat.ONIMPORT, { _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 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.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) diff --git a/core/wiki/portal.js b/core/wiki/portal.js index 796df0ea..7835a68d 100644 --- a/core/wiki/portal.js +++ b/core/wiki/portal.js @@ -6,6 +6,7 @@ Volcanos(chat.ONIMPORT, { 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.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.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)