From 85d2bf53161476d299ee4ccfc9b5f46fca2c7a7f Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Mon, 11 May 2026 11:28:00 +0200 Subject: [PATCH] dead-code: remove unused .app-toast.error CSS rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The showAppToast() function signature in renderer.ts is `(message: string, type: 'info' | 'warn' = 'info'): void` — there is no 'error' kind. Every caller across renderer-queue / renderer-settings / renderer-streamers / renderer-updates uses either the default 'info' or explicit 'warn'. No code path adds the .error class to the toast. The .app-toast.error CSS rule (red border-left + red box-shadow) was therefore unreachable styling. Removed. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/styles.css | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/styles.css b/src/styles.css index 56fe283..314dfae 100644 --- a/src/styles.css +++ b/src/styles.css @@ -3787,11 +3787,6 @@ input[type="number"]::-webkit-outer-spin-button { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 167, 38, 0.25); } -.app-toast.error { - border-left-color: var(--error); - box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 70, 70, 0.25); -} - /* ============================================ STREAMER SECTION COUNTER ============================================