diff --git a/frontend/src/RomM.vue b/frontend/src/RomM.vue
index 67841d8b8..354177b38 100644
--- a/frontend/src/RomM.vue
+++ b/frontend/src/RomM.vue
@@ -80,6 +80,23 @@ watch(
);
const isV2 = computed(() => uiVersion.value === "v2");
+
+// Apply the v2 token scope to when v2 is active. Vuetify teleports
+// overlays (VDialog, VMenu) into `
> .v-overlay-container` — which
+// sits OUTSIDE both the AppLayout `.r-v2` wrapper AND . Putting the
+// classes on means the entire document inherits the v2 CSS custom
+// properties so `var(--r-color-...)` resolves inside any teleported
+// dialog/menu. v1 mode strips the classes, keeping v1 CSS unaffected.
+watch(
+ [isV2, activeThemeName],
+ ([v2, themeName]) => {
+ const root = document.documentElement;
+ root.classList.toggle("r-v2", v2);
+ root.classList.toggle("r-v2-dark", v2 && themeName === V2_THEME_DARK);
+ root.classList.toggle("r-v2-light", v2 && themeName === V2_THEME_LIGHT);
+ },
+ { immediate: true },
+);
diff --git a/frontend/src/v2/components/Collections/CollectionPickerRow.vue b/frontend/src/v2/components/Collections/CollectionPickerRow.vue
index b030c6e0b..e59d91c35 100644
--- a/frontend/src/v2/components/Collections/CollectionPickerRow.vue
+++ b/frontend/src/v2/components/Collections/CollectionPickerRow.vue
@@ -4,6 +4,7 @@
// Click toggles; parent owns the pending/checked state and handles the
// API round-trip.
import { RIcon } from "@v2/lib";
+import { computed } from "vue";
import CollectionMosaic from "@/v2/components/Collections/CollectionMosaic.vue";
defineOptions({ inheritAttrs: false });
@@ -14,15 +15,24 @@ interface Props {
covers: string[];
checked: boolean;
busy?: boolean;
+ // Thumb diameter in px. Drives both the grid first-column width and
+ // the CollectionMosaic width so the label column always lines up with
+ // the right edge of the thumb.
+ tileSize?: number;
}
-withDefaults(defineProps(), {
+const props = withDefaults(defineProps(), {
busy: false,
+ tileSize: 36,
});
defineEmits<{
(e: "toggle"): void;
}>();
+
+const rowStyle = computed(() => ({
+ "--tile-w": `${props.tileSize}px`,
+}));
@@ -33,6 +43,7 @@ defineEmits<{
'pick-row--checked': checked,
'pick-row--busy': busy,
}"
+ :style="rowStyle"
:aria-pressed="checked"
:disabled="busy"
@click="$emit('toggle')"
@@ -41,7 +52,7 @@ defineEmits<{
{{ name }}
{{ count }}
-
+
@@ -53,7 +64,7 @@ defineEmits<{
background: transparent;
border: 0;
display: grid;
- grid-template-columns: 36px 1fr auto 26px;
+ grid-template-columns: var(--tile-w, 36px) 1fr auto 26px;
align-items: center;
gap: 14px;
padding: 8px 30px;
@@ -79,10 +90,10 @@ defineEmits<{
cursor: progress;
}
-/* Portrait thumb — width from the first grid column, height from the
- CollectionMosaic aspectRatio. */
+/* Portrait thumb — width tracks the configurable tile size; height is
+ computed by CollectionMosaic from its 140/188 aspectRatio. */
.pick-row__thumb {
- width: 36px;
+ width: var(--tile-w, 36px);
}
.pick-row__name {
diff --git a/frontend/src/v2/components/Collections/NewCollectionRow.vue b/frontend/src/v2/components/Collections/NewCollectionRow.vue
index 402bef2a6..c256a50ee 100644
--- a/frontend/src/v2/components/Collections/NewCollectionRow.vue
+++ b/frontend/src/v2/components/Collections/NewCollectionRow.vue
@@ -7,7 +7,7 @@
// `+` tile and row frame are shared between the two states so the
// expand animation reads as the same surface swapping its contents.
import { RBtn, RIcon } from "@v2/lib";
-import { nextTick, ref, watch } from "vue";
+import { computed, nextTick, ref, watch } from "vue";
import { useI18n } from "vue-i18n";
defineOptions({ inheritAttrs: false });
@@ -16,9 +16,19 @@ interface Props {
expanded: boolean;
name: string;
creating: boolean;
+ // Tile diameter in px. Drives both the grid first-column width and the
+ // plus-tile width so the prepended slot stays flush with the label
+ // column regardless of size. Match the row's CollectionMosaic thumb.
+ tileSize?: number;
}
-const props = defineProps();
+const props = withDefaults(defineProps(), {
+ tileSize: 36,
+});
+
+const rowStyle = computed(() => ({
+ "--tile-w": `${props.tileSize}px`,
+}));
const emit = defineEmits<{
(e: "update:expanded", value: boolean): void;
@@ -53,7 +63,13 @@ function onInput(e: Event) {
-