1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-10-14 12:56:20 +08:00
parent 92cf6348a6
commit cc0aa5084f
4 changed files with 10 additions and 3 deletions

View File

@ -361,6 +361,7 @@ div.action div.tabs:hover {
div.action div.tabs.select {
background-color:var(--output-bg-color); color:var(--hover-fg-color);
border-top-left-radius:10px; border-top-right-radius:10px;
border-bottom:var(--hover-fg-color) solid 2px;
}
div.zone>div.item { background-color:var(--th-bg-color); }
div.zone>div.list>div.zone>div.item { background-color:var(--th-bg-color); }
@ -394,7 +395,7 @@ div.carte div.item.notice:hover { background-color:var(--notice-bg-color); color
body.cmd.mobile { overflow:hidden; }
body.mobile table.content { width:100%; }
body.mobile form.option>div.item { margin:0; }
body.mobile form.option>div.item.button>input { display:none; }
body.mobile:not(.cmd) form.option>div.item.button>input { display:none; }
body.mobile fieldset>div.status { max-height:32px; overflow:hidden; }
body.mobile fieldset:not(.panel):not(.input):not(.play)>div.action>div:not(.icons) { display:none; }
body.mobile fieldset.plugin:not(.float):not(.full):not(.cmd)>form.option>div.icon:not(.delete) { display:block; }

View File

@ -77,7 +77,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) { can.ui = can.on
can.page.Select(can, can._target, "div.content>div", function(item) { can.page.style(can, item, {"z-index": 3}) })
},
_item: function(can, item, target) { if (!item.latitude || !item.longitude) { return }
can.onimport.item(can, item, function(event) { can.onaction.center(can, item) }, function(event) {
var _target = can.onimport.item(can, item, function(event) { can.onaction.center(can, item) }, function(event) {
can.onexport.hover(can, item), can.user.carteRight(event, can, {
direction: function(event, button) { can.onaction.center(can, item), can.onaction[button](event, can, button) },
favor: function(event) { can.request(event, item), can.onaction.create(event, can) },
@ -87,6 +87,9 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) { can.ui = can.on
can.runAction(event, mdb.MODIFY, ["extra.index", data.index, "extra.args", data.args], function() {})
})
},
remove: function(event, button) {
can.runAction(event, mdb.REMOVE, [mdb.HASH, item.hash], function() { can.page.Remove(can, _target) })
},
})
}, target||can.ui.zone.favor._target)
can.mark && can.mark.add({position: can.onimport.point(can, item), properties: item})

View File

@ -5,7 +5,7 @@ fieldset.word>div.output div.story.flex>* { padding:20px; }
fieldset.word>div.output h2.story[data-type=spark][data-name=title] { text-align:center; }
fieldset.word>div.output h3 { margin-top:20px; }
fieldset.word>div.output table { width:100%; }
fieldset.word>div.output img { max-height:100%; max-width:100%; }
fieldset.word>div.output img { display:block; margin:auto; max-height:100%; max-width:100%; }
fieldset.word>div.output video { max-height:100%; width:100%; }
fieldset.word>div.output iframe { height:480px; width:100%; }
fieldset.word>div.output svg.story[data-index] text { cursor:pointer; }

View File

@ -77,6 +77,9 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.Conf(html.PADDI
can.isCmdMode() && can.page.styleHeight(can, can._output, "")
}
can.core.List(can._plugins, function(sub) { sub.onimport.size(sub, can.base.Min(can.ConfHeight()/2, 300, 600), sub.Conf("_width")||(can.ConfWidth()-2*padding), true) })
can.page.Select(can, can._output, html.IMG, function(target) {
can.page.style(can, target, html.MAX_HEIGHT, can.ConfHeight())
})
}, 0) },
}, [""])
Volcanos(chat.ONACTION, {