diff --git a/index.css b/index.css index c90e2b15..c64655ce 100644 --- a/index.css +++ b/index.css @@ -366,7 +366,7 @@ fieldset.input.date>div.output td span.lunar.fest { color:red; } fieldset.input.date>div.output td { cursor:pointer; } fieldset.input.date>div.status { text-align:center; border-top:unset; } fieldset.input.date>div.status>div.today { padding:var(--input-padding); } -body.mobile fieldset.input.date { left:25px !important; } +body.mobile fieldset.input.date { left:0 !important; width:100%; } fieldset.input.float { border-radius:0; padding:0; } fieldset.input.float table.content th { padding:var(--input-padding); } fieldset.input.float table.content td { padding:var(--input-padding); } diff --git a/plugin/table.js b/plugin/table.js index 688dc876..64d7905b 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -14,7 +14,9 @@ Volcanos(chat.ONIMPORT, { can.onappend.table(can, msg, null, target), can.onappend.board(can, msg, target), can.onmotion.story.auto(can, target) } cb && cb(msg) }, - textView: function(can, value, key, type) { return value[key] && {text: [can.user.transValue(can, value, key), "", [type, value[key], can.Conf("_trans.value."+key+".style."+value[key])||""]]} }, + textView: function(can, value, key, type) { if (!type) { type = key.split("_").pop() } + return value[key] && {text: [can.user.transValue(can, value, key), "", [type, value[key], can.Conf("_trans.value."+key+".style."+value[key])||""]]} + }, shareTitle: function(can, msg, title, content) { if (msg.IsDetail()) { var value = msg.TableDetail() msg.Option("_share_title", (value[title]||value.name||value.uid).slice(0, 6)), msg.Option("_share_content", value[content]||value.info) } },