mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 18:43:23 +01:00
Fix broken dash pairs from the comment sweep (Greptile review)
Six comments had a dash pair around a 'which' clause turned into two colons. Use commas so each reads as one sentence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RyamrxVw5BzEidVzm68LY7
This commit is contained in:
@@ -98,7 +98,7 @@ watch(
|
||||
const isV2 = computed(() => uiVersion.value === "v2");
|
||||
|
||||
// Apply the v2 token scope to <html> when v2 is active. Vuetify teleports
|
||||
// overlays (VDialog, VMenu) into `<body> > .v-overlay-container`: which
|
||||
// overlays (VDialog, VMenu) into `<body> > .v-overlay-container`, which
|
||||
// sits OUTSIDE both the AppLayout `.r-v2` wrapper AND <v-app>. Putting the
|
||||
// classes on <html> means the entire document inherits the v2 CSS custom
|
||||
// properties so `var(--r-color-...)` resolves inside any teleported
|
||||
|
||||
@@ -86,7 +86,7 @@ api.interceptors.response.use(
|
||||
// * 5xx from a non-heartbeat endpoint → "suspect"; ask the connection
|
||||
// layer to confirm via the authoritative /heartbeat probe (so one
|
||||
// buggy endpoint doesn't flash the banner, and the heartbeat request
|
||||
// itself never re-triggers this: which would loop).
|
||||
// itself never re-triggers this, which would loop).
|
||||
// * 4xx → backend is alive; emit backend-online so a stale offline banner
|
||||
// clears immediately instead of waiting for the next heartbeat poll.
|
||||
const status = error.response?.status as number | undefined;
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// NotificationHost: v2 toast host. Listens for `snackbarShow` and stacks
|
||||
// transient glass-card toasts in the top-right (top-centre on mobile).
|
||||
// Each toast auto-dismisses after `timeout` ms (default 3000) and can be
|
||||
// closed manually. Unlike v1: which replaced a single v-snackbar on each
|
||||
// emission: v2 stacks so fast successive messages don't overwrite each
|
||||
// closed manually. Unlike v1, which replaced a single v-snackbar on each
|
||||
// emission, v2 stacks so fast successive messages don't overwrite each
|
||||
// other. Stored colour/icon fields are preserved so existing emitters work.
|
||||
import { RIcon } from "@v2/lib";
|
||||
import { useEventListener } from "@vueuse/core";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// least once. GameCover reads it so a recycled card (virtual scroll) pointing
|
||||
// at an already-seen URL skips the blur-up reveal: replaying the
|
||||
// `filter: blur(16px)` bloom on every remount is just flicker, and during the
|
||||
// gallery's re-packs: which remount cards as positions shuffle between rows:
|
||||
// gallery's re-packs, which remount cards as positions shuffle between rows,
|
||||
// that per-card blur cost compounds into real jank.
|
||||
//
|
||||
// Module-level so the state is shared across every GameCover instance. Bounded
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// dismissed.
|
||||
//
|
||||
// Per-instance `@keydown` on the panel only fires when the event
|
||||
// happens to bubble to it: which fails whenever a child stops
|
||||
// happens to bubble to it, which fails whenever a child stops
|
||||
// propagation, or whenever focus lives outside the panel (a teleported
|
||||
// listbox, the body itself). A single capture-phase listener on
|
||||
// `window` sidesteps both.
|
||||
|
||||
@@ -113,7 +113,7 @@ function tick() {
|
||||
|
||||
function onKeydown(e: KeyboardEvent) {
|
||||
// `isTrusted` is false for KeyboardEvents constructed via `new` and
|
||||
// `dispatchEvent`: which is how `useGamepad` fires synthetic keys.
|
||||
// `dispatchEvent`, which is how `useGamepad` fires synthetic keys.
|
||||
const from: LogEntry["from"] = e.isTrusted ? "real" : "synthetic";
|
||||
keyLog.value = [
|
||||
{ id: logCounter++, at: Date.now(), key: e.key, from },
|
||||
|
||||
Reference in New Issue
Block a user