From a72ba4490e49298b8d8a83c3360e235d6bf7edcb Mon Sep 17 00:00:00 2001 From: liangxu Date: Mon, 27 Apr 2026 00:59:08 +0800 Subject: [PATCH] feat(admin-web): redesign publish modal account picker as bento cards Switch the account picker from a vertical list to an auto-fill grid of bento-style cards so a creator can compare more accounts at a glance. Each card stacks identity + check above a dashed divider with the status tags below, hovers lift with a soft shadow, and the avatar loads with a no-referrer policy to keep cross-origin platform CDNs happy. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/components/PublishArticleModal.vue | 105 +++++++++++------- 1 file changed, 66 insertions(+), 39 deletions(-) diff --git a/apps/admin-web/src/components/PublishArticleModal.vue b/apps/admin-web/src/components/PublishArticleModal.vue index a189cb1..22c31de 100644 --- a/apps/admin-web/src/components/PublishArticleModal.vue +++ b/apps/admin-web/src/components/PublishArticleModal.vue @@ -523,30 +523,30 @@ function normalizePlatformUid(value?: string | null): string { v-for="account in accountCards" :key="account.id" type="button" - class="publish-modal__list-item" + class="publish-modal__card" :class="{ - 'publish-modal__list-item--active': isSelected(account.id), - 'publish-modal__list-item--disabled': !account.selectable, + 'publish-modal__card--active': isSelected(account.id), + 'publish-modal__card--disabled': !account.selectable, }" @click="toggleAccount(account.id, account.selectable)" > -
+
+
+ + + {{ accountInitial(account) }} + +
+ {{ account.displayName }} + {{ account.platformName }} · {{ account.platformUid }} +
+
- - - - {{ accountInitial(account) }} - - -
- {{ account.displayName }} - {{ account.platformName }} · {{ account.platformUid }} -
-
+