diff --git a/index.css b/index.css index c99d5d42..5f559094 100644 --- a/index.css +++ b/index.css @@ -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; } diff --git a/plugin/local/chat/location.js b/plugin/local/chat/location.js index 6db07879..49e4c6f2 100644 --- a/plugin/local/chat/location.js +++ b/plugin/local/chat/location.js @@ -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}) diff --git a/plugin/local/wiki/word.css b/plugin/local/wiki/word.css index 999ec899..5ad7a3e5 100644 --- a/plugin/local/wiki/word.css +++ b/plugin/local/wiki/word.css @@ -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; } diff --git a/plugin/local/wiki/word.js b/plugin/local/wiki/word.js index ee8f925d..5fa6154e 100644 --- a/plugin/local/wiki/word.js +++ b/plugin/local/wiki/word.js @@ -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, {