Spaces:
Running
Running
Upload 98 files
Browse files- 前端页面/social/通知中心组件.js +0 -3
- 前端页面/styles/主题基础.css +1 -1
前端页面/social/通知中心组件.js
CHANGED
|
@@ -163,15 +163,12 @@ export async function openNotificationCenter(currentUser, bellBtn) {
|
|
| 163 |
nameLabel = `<button type="button" class="notif-user-link" data-account="${escapeHtml(msg.from_user)}">${escapeHtml(msg.from_name || msg.from_user)}</button>`;
|
| 164 |
}
|
| 165 |
|
| 166 |
-
const hasTarget = !!msg.target_item_id && (msg.type.startsWith('task_')
|
| 167 |
-
|| ['dispute_responded', 'dispute_resolved', 'like', 'favorite', 'comment', 'reply', 'purchase', 'tip', 'refund'].includes(msg.type));
|
| 168 |
html += `
|
| 169 |
<article class="notif-item${isSystem ? ' notif-item--system' : ''}${isUnread ? ' notif-item--unread' : ''}" data-account="${escapeHtml(msg.from_user)}" data-type="${escapeHtml(msg.type)}" data-item-id="${escapeHtml(msg.target_item_id || '')}">
|
| 170 |
<img class="notification-avatar" alt="" src="${escapeHtml(msg.from_avatar || PLACEHOLDERS.AVATAR)}">
|
| 171 |
<div class="notification-body">
|
| 172 |
<div class="notification-meta">${nameLabel}<time class="notification-time" datetime="${date.toISOString()}">${timeStr}</time></div>
|
| 173 |
<div class="notification-action">${actionText}</div>
|
| 174 |
-
${hasTarget ? `<button type="button" class="notification-primary" aria-label="${escapeHtml(t('notif.open_target'))}" title="${escapeHtml(t('notif.open_target'))}">↗</button>` : ''}
|
| 175 |
</div>
|
| 176 |
</article>
|
| 177 |
`;
|
|
|
|
| 163 |
nameLabel = `<button type="button" class="notif-user-link" data-account="${escapeHtml(msg.from_user)}">${escapeHtml(msg.from_name || msg.from_user)}</button>`;
|
| 164 |
}
|
| 165 |
|
|
|
|
|
|
|
| 166 |
html += `
|
| 167 |
<article class="notif-item${isSystem ? ' notif-item--system' : ''}${isUnread ? ' notif-item--unread' : ''}" data-account="${escapeHtml(msg.from_user)}" data-type="${escapeHtml(msg.type)}" data-item-id="${escapeHtml(msg.target_item_id || '')}">
|
| 168 |
<img class="notification-avatar" alt="" src="${escapeHtml(msg.from_avatar || PLACEHOLDERS.AVATAR)}">
|
| 169 |
<div class="notification-body">
|
| 170 |
<div class="notification-meta">${nameLabel}<time class="notification-time" datetime="${date.toISOString()}">${timeStr}</time></div>
|
| 171 |
<div class="notification-action">${actionText}</div>
|
|
|
|
| 172 |
</div>
|
| 173 |
</article>
|
| 174 |
`;
|
前端页面/styles/主题基础.css
CHANGED
|
@@ -1535,7 +1535,7 @@ button.ranking-rating__star { cursor: pointer; min-width: 28px; min-height: 28px
|
|
| 1535 |
.creator-card { container-type:inline-size; container-name:ranking-creator; min-width:0; margin-bottom:12px; border:1px solid var(--rk-border,var(--border-color,#454545)); border-radius:var(--rk-radius-md,10px); background:var(--rk-panel,var(--comfy-input-bg,#292929)); color:var(--rk-text,var(--fg-color,#f1f1f1)); font:inherit; overflow:hidden; }
|
| 1536 |
.creator-card *, .creator-tip-board * { box-sizing:border-box; }
|
| 1537 |
.creator-card__summary { position:relative; padding:12px; cursor:pointer; background-position:center; background-size:cover; }
|
| 1538 |
-
.creator-card__summary--banner::before { content:""; position:absolute; inset:0; background:rgb(0 0 0 /
|
| 1539 |
.creator-card__summary--banner { color:#fff; }
|
| 1540 |
.creator-card__summary > * { position:relative; }
|
| 1541 |
.creator-card__identity { display:grid; grid-template-columns:50px minmax(0,1fr); align-items:center; gap:12px; }
|
|
|
|
| 1535 |
.creator-card { container-type:inline-size; container-name:ranking-creator; min-width:0; margin-bottom:12px; border:1px solid var(--rk-border,var(--border-color,#454545)); border-radius:var(--rk-radius-md,10px); background:var(--rk-panel,var(--comfy-input-bg,#292929)); color:var(--rk-text,var(--fg-color,#f1f1f1)); font:inherit; overflow:hidden; }
|
| 1536 |
.creator-card *, .creator-tip-board * { box-sizing:border-box; }
|
| 1537 |
.creator-card__summary { position:relative; padding:12px; cursor:pointer; background-position:center; background-size:cover; }
|
| 1538 |
+
.creator-card__summary--banner::before { content:""; position:absolute; inset:0; background:rgb(0 0 0 / 10%); }
|
| 1539 |
.creator-card__summary--banner { color:#fff; }
|
| 1540 |
.creator-card__summary > * { position:relative; }
|
| 1541 |
.creator-card__identity { display:grid; grid-template-columns:50px minmax(0,1fr); align-items:center; gap:12px; }
|