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) <noreply@anthropic.com>
This commit is contained in:
Georges-Antoine Assi
2026-09-30 22:32:34 -04:00
parent 06b8a04070
commit bc483bfdb8
3 changed files with 12 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);