From bc483bfdb8646d2ccecf71c6ab3120ed158e862f Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Wed, 30 Sep 2026 22:32:34 -0400 Subject: [PATCH] Address Greptile and Copilot review on the pair shells Pin PairShell's foreground and border tokens to the overlay palette so the Pair card and footer stay legible in v2-light, let the footer's version tag wrap long branch names instead of clipping, and drop the footer positioning comments. Co-Authored-By: Claude Opus 5.5 (1M context) --- frontend/src/v2/components/shared/AuthFooter.vue | 4 ++++ frontend/src/v2/views/DevicePairShell.vue | 1 - frontend/src/v2/views/PairShell.vue | 9 ++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/v2/components/shared/AuthFooter.vue b/frontend/src/v2/components/shared/AuthFooter.vue index 4412c9279..f0e518a1b 100644 --- a/frontend/src/v2/components/shared/AuthFooter.vue +++ b/frontend/src/v2/components/shared/AuthFooter.vue @@ -21,6 +21,10 @@ import VersionTag from "@/v2/components/shared/VersionTag.vue"; } .r-v2-auth-footer__version { + /* Branch names have no spaces, so allow breaks anywhere to stay on screen. */ + min-width: 0; + overflow-wrap: anywhere; + text-align: end; /* Sits directly on the background art with no card behind it, so a soft black shadow keeps it legible over the lighter patches. */ text-shadow: 0 1px 3px color-mix(in srgb, black 70%, transparent); diff --git a/frontend/src/v2/views/DevicePairShell.vue b/frontend/src/v2/views/DevicePairShell.vue index 0f397486a..703552ca0 100644 --- a/frontend/src/v2/views/DevicePairShell.vue +++ b/frontend/src/v2/views/DevicePairShell.vue @@ -64,7 +64,6 @@ import DevicePair from "@/v2/views/DevicePair.vue"; max-width: 460px; } -/* Absolute so it stays out of the grid and the stage keeps its centring. */ .r-v2-devpair-shell__footer { position: absolute; left: var(--r-space-4); diff --git a/frontend/src/v2/views/PairShell.vue b/frontend/src/v2/views/PairShell.vue index 8e16eee24..4f43d00d0 100644 --- a/frontend/src/v2/views/PairShell.vue +++ b/frontend/src/v2/views/PairShell.vue @@ -24,6 +24,14 @@ import Pair from "@/v2/views/Pair.vue"; place-items: center; padding: var(--r-space-6); overflow: hidden; + + /* The background and the Pair card are always dark, so pin text and + borders to the always-light overlay tokens for v2-light. */ + --r-color-fg: var(--r-color-overlay-fg); + --r-color-fg-secondary: var(--r-color-overlay-fg-secondary); + --r-color-fg-muted: var(--r-color-overlay-fg-muted); + --r-color-border: var(--r-color-overlay-border); + --r-color-border-strong: var(--r-color-overlay-border-strong); } .r-v2-pair-shell__bg { @@ -51,7 +59,6 @@ import Pair from "@/v2/views/Pair.vue"; max-width: 440px; } -/* Absolute so it stays out of the grid and the stage keeps its centring. */ .r-v2-pair-shell__footer { position: absolute; left: var(--r-space-4);