This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-03-15 13:16:13 +08:00
parent b62ec45b1d
commit b1345a0313
4 changed files with 9 additions and 4 deletions

View File

@ -349,7 +349,9 @@ func (s Table) RecordEventWithName(m *ice.Message, info string, arg ...string) {
info = "✅ " + info info = "✅ " + info
case "placeRemove", mdb.REMOVE: case "placeRemove", mdb.REMOVE:
info = "❌ " + info info = "❌ " + info
case "placeAuth": case "placeAuth", mdb.MODIFY:
info = "🕑 " + info
default:
info = "🕑 " + info info = "🕑 " + info
} }
}) })

View File

@ -41,8 +41,9 @@ func (s notice) List(m *ice.Message, arg ...string) {
return return
} }
kit.If(s.IsLeader(m), func() { kit.If(s.IsLeader(m), func() {
m.PushAction(s.Remove) if m.PushAction(s.Remove); m.Length() == 0 {
s.Button(m, "") s.Button(m, "")
}
}, func() { }, func() {
m.Action() m.Action()
}) })

View File

@ -100,6 +100,7 @@ $output fieldset.story>div.status { display:none; }
$output fieldset.story>div.output { background-color:var(--plugin-bg-color); } $output fieldset.story>div.output { background-color:var(--plugin-bg-color); }
$output fieldset.story>div.output table.content td { box-shadow:none; } $output fieldset.story>div.output table.content td { box-shadow:none; }
$output fieldset.story>div.output table.content td img { max-width:100%; } $output fieldset.story>div.output table.content td img { max-width:100%; }
$output fieldset.story>div.output table.content tr.icon td img { max-height:128px; max-width:128px; }
$output fieldset.story>div.output table.content tr.user_avatar td img { max-height:128px; max-width:128px; } $output fieldset.story>div.output table.content tr.user_avatar td img { max-height:128px; max-width:128px; }
$output fieldset.story>div.output table.content tr.auth_avatar td img { max-height:128px; max-width:128px; } $output fieldset.story>div.output table.content tr.auth_avatar td img { max-height:128px; max-width:128px; }
$output fieldset.story>div.output>div.code { text-align:center; } $output fieldset.story>div.output>div.code { text-align:center; }

View File

@ -115,7 +115,8 @@ Volcanos(chat.ONIMPORT, {
can.runAction({}, "noticeList", [value._uid], function(msg) { can.runAction({}, "noticeList", [value._uid], function(msg) {
if (msg.Length() == 0) { value._notice_hide = true; return can.onmotion.hidden(can, target) } can.onmotion.toggle(can, target, true) if (msg.Length() == 0) { value._notice_hide = true; return can.onmotion.hidden(can, target) } can.onmotion.toggle(can, target, true)
can.page.Append(can, target, [ can.page.Append(can, target, [
{text: " [ 公告 ] "}, {text: can.base.TimeTrim(msg.Append("created_at"))}, {text: " "}, {text: [msg.Append("title"), "", "title"]}, {text: "更多 >"}, {text: can.user.trans(can, "[ notice ]", " [ 公告 ] ")}, {text: can.base.TimeTrim(msg.Append("created_at"))}, {text: " "},
{text: [msg.Append("title"), "", "title"]}, {text: can.user.trans(can, "more >", "更多 >")},
]) ])
}) })
}, },