mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(mod queue): show pending approval reasons directly
This commit is contained in:
@@ -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}
|
||||
</>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user