From ee662d628a7a41fd5c761dac007375df72c39691 Mon Sep 17 00:00:00 2001 From: Tim Bradgate Date: Wed, 10 Jun 2026 15:32:24 +0100 Subject: [PATCH] Add hover highlighting to live view cue add buttons Replicates the :has() CSS pattern from the config cue/script editors to the live show view. When cue edit mode is active, hovering the add-cue button applies a faint white overlay to the script row. Applied to the inner content row (not the root container) to avoid conflicting with the existing .current-line blue highlight. Updated all four components: standard and compact viewers in both the Vue 2 and Vue 3 clients. Co-Authored-By: Claude Sonnet 4.6 --- .../components/show/live/ScriptLineViewer.vue | 11 ++++++++-- .../show/live/ScriptLineViewerCompact.vue | 20 +++++++++++++++---- .../show/live/ScriptLineViewer.vue | 11 ++++++++-- .../show/live/ScriptLineViewerCompact.vue | 14 +++++++++---- 4 files changed, 44 insertions(+), 12 deletions(-) diff --git a/client-v3/src/components/show/live/ScriptLineViewer.vue b/client-v3/src/components/show/live/ScriptLineViewer.vue index 3c8a10ea..063772a3 100644 --- a/client-v3/src/components/show/live/ScriptLineViewer.vue +++ b/client-v3/src/components/show/live/ScriptLineViewer.vue @@ -64,6 +64,7 @@ @@ -170,7 +171,7 @@ @@ -439,6 +440,12 @@ onUnmounted(() => { padding: 0.2rem; } +.line-row:has(.add-cue-btn:hover) { + background-color: rgba(255, 255, 255, 0.06); + border-radius: 4px; + transition: background-color 0.15s ease; +} + .stage-direction { margin-top: 1rem; margin-bottom: 1rem; diff --git a/client-v3/src/components/show/live/ScriptLineViewerCompact.vue b/client-v3/src/components/show/live/ScriptLineViewerCompact.vue index a5d35085..bb088382 100644 --- a/client-v3/src/components/show/live/ScriptLineViewerCompact.vue +++ b/client-v3/src/components/show/live/ScriptLineViewerCompact.vue @@ -56,7 +56,7 @@ - + @@ -175,7 +176,7 @@ @@ -393,6 +394,12 @@ export default defineComponent({ padding: 0.2rem; } +.line-row:has(.add-cue-btn:hover) { + background-color: rgba(255, 255, 255, 0.06); + border-radius: 4px; + transition: background-color 0.15s ease; +} + .stage-direction { margin-top: 1rem; margin-bottom: 1rem; diff --git a/client/src/vue_components/show/live/ScriptLineViewerCompact.vue b/client/src/vue_components/show/live/ScriptLineViewerCompact.vue index c447b9b7..81f198df 100644 --- a/client/src/vue_components/show/live/ScriptLineViewerCompact.vue +++ b/client/src/vue_components/show/live/ScriptLineViewerCompact.vue @@ -70,7 +70,7 @@ - +