From 4472e3bf507ba2f11332eb3462e8876377306303 Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Mon, 11 May 2026 11:46:20 +0200 Subject: [PATCH] dead-code: remove redundant .filter-input:hover rule 4.6.141 added .filter-input:hover:not(:focus):not(:disabled) { border-color: rgba(145, 70, 255, 0.45); } as a targeted hover affordance. Then 4.6.142 added the same effect via the global input[type="text"]:hover:not(:focus):not(:disabled) rule covering every text input. Since .filter-input is always applied to elements (VOD filter, sidebar streamer filter, archive search input), the global rule already matches them all with identical effect. The class-scoped rule was duplicated work. Replaced with an explanatory comment so future readers don't add it back. The .select-compact:hover stays because it adds a background tint on top of the global border-color change. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/styles.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/styles.css b/src/styles.css index 314dfae..0f2d33f 100644 --- a/src/styles.css +++ b/src/styles.css @@ -471,10 +471,10 @@ body { color: var(--text); font-size: 13px; } - -.filter-input:hover:not(:focus):not(:disabled) { - border-color: rgba(145, 70, 255, 0.45); -} +/* No .filter-input:hover here — it's redundant with the global + input[type="text"]:hover rule added in 4.6.142 (same effect: soft + purple border on hover). The class is always applied to elements, so the global rule already covers them. */ .filter-input.compact { width: calc(100% - 16px);