diff --git a/index.css b/index.css index ab260e30..e47ecf44 100644 --- a/index.css +++ b/index.css @@ -182,6 +182,7 @@ div.output.card>div.item.stop { color:var(--disable-fg-color); } div.output.card>div.item>div.title { border-bottom:var(--box-border); font-size:var(--legend-font-size); font-weight:bold; padding-bottom:var(--input-padding); display:flex; align-items:center; } div.output.card>div.item>div.title>div.title { overflow:auto } div.output.card>div.item>div.title>div.title>span { padding:var(--input-padding); white-space:pre; } +div.output.card>div.item>div.title>div.title>span.exists { color:var(--notice-bg-color); } div.output.card>div.item>div.title>img { height:var(--header-height); width:var(--header-height); margin:0; float:left; } div.output.card>div.item>div.title>img.jpg { padding:var(--input-padding); } div.item img[src*=".ico"] { padding:3px; } @@ -597,6 +598,7 @@ fieldset>div.action div.item.button { border-radius:var(--button-radius); } fieldset.input.date.float>div.action div.item.button:last-child { margin-right:0; } fieldset>div.action div.item:not(.state) { box-shadow:var(--input-box-shadow); } fieldset>div.action>div.tabs:not(.state).select { box-shadow:var(--legend-box-shadow); } +fieldset>div.action>div.tabs:not(.state) span.exists { color:var(--notice-bg-color); } fieldset>div.action>div.cmds:not(.state) { box-shadow:var(--legend-box-shadow); } div.output.card>div.item { box-shadow:var(--th-box-shadow); border:var(--plugin-border); border-radius:var(--plugin-radius); } div.output.card>div.item:hover { box-shadow:var(--notice-box-shadow); } diff --git a/plugin/table.js b/plugin/table.js index 9d970f3c..33d5708a 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -15,7 +15,7 @@ Volcanos(chat.ONIMPORT, { return {view: [[html.ITEM, value.type, value.status, "s-"+value.name]], list: [ {view: [wiki.TITLE, html.DIV], list: [ value.icon && {className: can.base.contains(img, ".jpg")? "jpg": "", img: img}, - {view: wiki.TITLE, list: [{text: value.name}, can.onappend.label(can, value)]}, + {view: wiki.TITLE, list: [{text: value.name}, value.exists == "true" && {text: ["●", "", "exists"]}, can.onappend.label(can, value)]}, ]}, {view: [wiki.CONTENT, html.DIV, value.text]}, {view: html.ACTION, inner: value.action, _init: function(target) { can.onappend.mores(can, target, value, html.CARD_BUTTON) can.page.Select(can, target, html.INPUT, function(target) { can.onappend.style(can, target.name, target) }) @@ -190,9 +190,9 @@ Volcanos(chat.ONIMPORT, { if (!next) { return true } next && next.click() } can.page.Remove(can, target), can.onexport.tabs && can.onexport.tabs(can) } - return {view: [[html.TABS, tabs.type, tabs.role, tabs.status]], title: tabs.title||tabs.text, list: [ - can.onimport._icons(can, tabs), can.onimport._nick(can, tabs), {icon: mdb.DELETE, onclick: function(event) { tabs._target._close(), can.onkeymap.prevent(event) }}, - ], onclick: function(event) { + return {view: [[html.TABS, tabs.type, tabs.role, tabs.status]], title: tabs.title||tabs.text, list: [].concat( + can.onimport._icons(can, tabs), can.onimport._nick(can, tabs), {icon: mdb.DELETE, onclick: function(event) { tabs._target._close(), can.onkeymap.prevent(event) }} + ), onclick: function(event) { can.onmotion.delay(can, function() { can.onmotion.scrollIntoView(can, tabs._target) }) if (can.page.ClassList.has(can, tabs._target, html.SELECT)) { return } can.onmotion.select(can, action, html.DIV_TABS, tabs._target), can.base.isFunc(cb) && cb(event, tabs) @@ -341,4 +341,4 @@ Volcanos(chat.ONIMPORT, { }, dream: function(event, can, msg, target, name) { can.sup.sub.oninputs._nameicon(event, can, msg, target, name) }, }) - \ No newline at end of file +