Merge branch 'codex/fix/neutral-mod-approval-reason'

This commit is contained in:
Tommaso Casaburi
2026-06-03 18:53:31 +07:00
38 changed files with 46 additions and 36 deletions
@@ -443,6 +443,8 @@ describe('CommentContent', () => {
expect(container.textContent).toContain('pending_mod_approval');
expect(container.textContent).toContain('pending-reason:rules violation');
expect(queryMarkdownText()).toEqual(['queued body', 'pending-reason:rules violation']);
const pendingReasonMarkdown = container.querySelectorAll('[data-testid="markdown"]')[1];
expect(pendingReasonMarkdown?.parentElement?.className).toContain('pendingApprovalReason');
const tooltip = container.querySelector('[data-testid="tooltip"]');
expect(tooltip?.getAttribute('title')).toContain('ban:short:music-posting.eth:2024-01-01 12:00:00');
@@ -232,7 +232,7 @@ const CommentContent = ({
<>
<br />
<br />
{renderContent(pendingApprovalReasonMessage)}
<span className={styles.pendingApprovalReason}>{renderContent(pendingApprovalReasonMessage)}</span>
</>
) : null}
</>
+8
View File
@@ -653,6 +653,14 @@
font-weight: 700;
}
.pendingApprovalReason {
color: var(--post-mobile-abbr-text-color);
--post-link-text-color: var(--post-mobile-abbr-text-color);
--post-link-text-color-hover: var(--post-mobile-abbr-text-color);
--post-quotelink-text-color: var(--post-mobile-abbr-text-color);
--post-quotelink-text-color-hover: var(--post-mobile-abbr-text-color);
}
.failedPublishNotice {
display: block;
color: red;