From 7f05a1593eab0cbc125d268ff574ab81f3495622 Mon Sep 17 00:00:00 2001 From: plebeius Date: Sun, 11 Jan 2026 16:19:51 +0100 Subject: [PATCH] update mod queue styling --- src/views/mod-queue/mod-queue.module.css | 41 ++++++++++++++++-------- src/views/mod-queue/mod-queue.tsx | 9 +++--- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/src/views/mod-queue/mod-queue.module.css b/src/views/mod-queue/mod-queue.module.css index feb906d1..cb0cf99e 100644 --- a/src/views/mod-queue/mod-queue.module.css +++ b/src/views/mod-queue/mod-queue.module.css @@ -53,11 +53,11 @@ .tableHeader { display: flex; - padding: 8px; + padding: 5px; border-bottom: var(--mod-queue-header-border-bottom); background: var(--mod-queue-header-background-color); font-weight: bold; - font-size: 13px; + font-size: 9pt; text-transform: capitalize; } @@ -97,26 +97,42 @@ /* ModQueueRow styles */ .row { display: flex; - padding: 4px 8px; - border-top: none; - border-left: none; - border-right: none; - border-bottom: var(--mod-queue-row-border-bottom); + padding: 2px; + border: none; align-items: center; gap: 8px; - background-color: var(--mod-queue-row-background-color); color: var(--body-font-color); - font-size: 13px; + font-size: 9pt; } -.row:hover { - background-color: var(--mod-queue-row-hover-background-color); +/* Odd rows - theme-specific background colors */ +:global(body.yotsuba) .rowOdd { + background-color: #ede2d4; +} + +:global(body.yotsuba-b) .rowOdd { + background-color: #e0e5f6; +} + +:global(body.futaba) .rowOdd { + background-color: #ede2d4; +} + +:global(body.burichan) .rowOdd { + background-color: #e0e5f6; +} + +:global(body.tomorrow) .rowOdd { + background-color: rgba(255, 255, 255, 0.1); +} + +:global(body.photon) .rowOdd { + background-color: #888; } .number { width: 60px; flex-shrink: 0; - font-weight: bold; } .board { @@ -147,7 +163,6 @@ width: auto; flex-shrink: 0; text-align: right; - color: var(--mod-queue-time-color); white-space: nowrap; } diff --git a/src/views/mod-queue/mod-queue.tsx b/src/views/mod-queue/mod-queue.tsx index a48f8aca..aee05926 100644 --- a/src/views/mod-queue/mod-queue.tsx +++ b/src/views/mod-queue/mod-queue.tsx @@ -47,12 +47,13 @@ const ModQueueFooter = ({ hasMore, subplebbitAddresses }: ModQueueFooterProps) = interface ModQueueRowProps { comment: Comment; showBoardColumn?: boolean; + isOdd?: boolean; } // Track which action was initiated to show appropriate completion message type ModerationAction = 'approve' | 'reject' | null; -const ModQueueRow = ({ comment, showBoardColumn = false }: ModQueueRowProps) => { +const ModQueueRow = ({ comment, showBoardColumn = false, isOdd = false }: ModQueueRowProps) => { const { t } = useTranslation(); const { getAlertThresholdSeconds } = useModQueueStore(); const [initiatedAction, setInitiatedAction] = useState(null); @@ -191,8 +192,8 @@ const ModQueueRow = ({ comment, showBoardColumn = false }: ModQueueRowProps) => }; return ( -
-
{number ?? '—'}
+
+
{number ?? 'N/A'}
{showBoardColumn &&
{boardPath ? /{boardPath}/ : }
}
{postUrl ? ( @@ -524,7 +525,7 @@ export const ModQueueView = ({ boardIdentifier: propBoardIdentifier }: ModQueueV data={feed} totalCount={feed.length} endReached={loadMore} - itemContent={(index, comment) => } + itemContent={(index, comment) => } components={footerComponents} />