diff --git a/frame.js b/frame.js index dcde9a23..9f05203e 100644 --- a/frame.js +++ b/frame.js @@ -801,7 +801,7 @@ Volcanos(chat.ONLAYOUT, {_init: function(can, target) { target = target||can._ro return layout }, _float: function(can) { var target = can._fields||can._target, sup = can._fields? can.sup: can - var height = can.base.Max(html.FLOAT_HEIGHT, can.page.height()-can.getHeaderHeight()-html.ACTION_HEIGHT), width = can.base.Max(html.FLOAT_WIDTH, can.page.width()-can.getRiverWidth()) + var height = can.base.Max(html.FLOAT_HEIGHT, can.page.height()-can.getHeaderHeight()-html.ACTION_HEIGHT), width = can.base.Max(html.FLOAT_WIDTH, can.page.width()-can.getRiverWidth()-2*html.PLUGIN_MARGIN) sup.onimport.size(sup, height, width, false), can.onappend.style(can, html.FLOAT) can.onmotion.resize(can, target, function(height, width) { sup.onimport.size(sup, height, width, false) }, can.getHeaderHeight(), can.getRiverWidth()) var left = can.getRiverWidth()+html.PLUGIN_MARGIN+html.PLUGIN_PADDING+(can.user.mod.isCmd? 0: 120), top = can.page.height()/4; if (can.user.isMobile) { left = 0 } diff --git a/index.css b/index.css index d72d25dd..744fe03c 100644 --- a/index.css +++ b/index.css @@ -57,7 +57,7 @@ body { --qrcode-height:364px; --qrcode-width:360px; --iframe-height:420px; --textarea-height:96px; --card-height:160px; --card-width:320px; --story-height:var(--float-height); --float-height:480px; --float-width:1200px; - --plug-height:var(--float-height); --plug-width:var(--float-width); + --plug-height:480px; --plug-width:var(--float-width); --desktop-height:684px; --desktop-width:var(--float-width); --desktop-icon-size:80px; --action-button:10; --table-button:5; --river-margin:80px; --action-margin:200px; --card-button:5;