From e354cf4d2f5cafdd6a78faf27b1c9c41a53dbd73 Mon Sep 17 00:00:00 2001 From: shy Date: Mon, 23 Dec 2024 10:48:33 +0800 Subject: [PATCH] add some --- index.css | 5 +++-- lib/user.js | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/index.css b/index.css index 2eb316ef..81f8665c 100644 --- a/index.css +++ b/index.css @@ -46,7 +46,7 @@ body { --header-height:48px; --footer-height:var(--action-height); --action-height:32px; --status-height:32px; --textarea-height:96px; --input-width:140px; --button-width:60px; --form-width:360px; --url-input-width:480px; - --card-width:300px; --card-height:160px; --qrcode-width:360px; --qrcode-height:363px; + --card-width:300px; --card-height:160px; --qrcode-width:320px; --qrcode-height:323px; --story-height:var(--float-height); --iframe-height:420px; --plug-height:480px; --plug-width:var(--float-width); --desktop-height:684px; --desktop-width:var(--float-width); @@ -500,7 +500,8 @@ fieldset.vimer>div.output div.project fieldset.plug:not(.hide) { position:static fieldset.vimer>div.output div.project fieldset.plug>div.output { height:100%; } fieldset.vimer>div.output div.project fieldset.plug div.output.card>div.item { min-width:120px; width:calc(100% - 2*var(--input-margin)); } div.float { position:fixed; } -div.output { position:relative; } div.content { position:relative; } +div.output { position:relative; } +// div.content { position:relative; } div.output>div.code { position:sticky; left:0; } div.output>div.code>img { margin:5px; max-width:100%; } div.output.flex { overflow:hidden; align-items:flex-start; justify-content: flex-start; } diff --git a/lib/user.js b/lib/user.js index f1184827..925cb219 100644 --- a/lib/user.js +++ b/lib/user.js @@ -417,8 +417,10 @@ Volcanos("user", { }) }, // {text: [can.user.info.titles]}, ]}]), window.parent != window && window.innerHeight < 480 && can.onmotion.hidden(can, ui.output) - can.page.style(can, ui._target, {left: (can.page.width()-ui._target.offsetWidth)/2, - top: can.page.height() < 640? (can.page.height()-ui._target.offsetHeight)/2: (can.page.height()-can.base.Min(ui._target.offsetHeight, 420)-html.HEADER_HEIGHT-html.ACTION_HEIGHT)/4+html.HEADER_HEIGHT}) + can.page.style(can, ui._target, { + left: (can.page.width()-ui._target.offsetWidth)/2, + top: can.page.height() < 480? (can.page.height()-ui._target.offsetHeight)/2: (can.page.height()-can.base.Min(ui._target.offsetHeight, 420)-html.HEADER_HEIGHT-html.ACTION_HEIGHT)/4+html.HEADER_HEIGHT, + }) } }) },