fix(v2): fold select notes into info wells and unwrap scan settings copy

The memory card and scan media notes sat as loose hints under their
select; both now live in the select's info well. Scan settings section
descriptions were capped at 680px and wrapped early on wide screens; they
now take the section width and only wrap when it runs out.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZ7NE6z9cJ8zsT3TsCtQds
This commit is contained in:
zurdi
2026-09-17 11:41:35 +02:00
parent 393e8bd08c
commit 4101aba964
2 changed files with 4 additions and 30 deletions

View File

@@ -12,7 +12,7 @@
// Cards key HARD on `emulator` (that is what claim-time lookup uses); the
// optional `platformId` is a display/creation hint only and never scopes the
// fetch.
import { RBtn, RDialog, RIcon, RSelect } from "@v2/lib";
import { RBtn, RDialog, RSelect } from "@v2/lib";
import { computed, ref, watch } from "vue";
import { useI18n } from "vue-i18n";
import type { MemoryCardSchema } from "@/__generated__";
@@ -141,6 +141,7 @@ async function submitCreate(name: string): Promise<void> {
:placeholder="
cards.length === 0 ? t('play.no-memory-cards') : undefined
"
:info="t('play.memory-card-hint')"
@update:model-value="onSelect"
/>
<RBtn
@@ -191,11 +192,6 @@ async function submitCreate(name: string): Promise<void> {
</RBtn>
</template>
</RDialog>
<p class="r-mc-picker__hint">
<RIcon icon="mdi-information-outline" size="12" />
<span>{{ t("play.memory-card-hint") }}</span>
</p>
</div>
</template>
@@ -216,13 +212,4 @@ async function submitCreate(name: string): Promise<void> {
flex: 1 1 auto;
min-width: 0;
}
.r-mc-picker__hint {
display: flex;
align-items: center;
gap: 5px;
margin: 0;
color: var(--r-color-fg-muted);
font-size: var(--r-font-size-xs);
}
</style>

View File

@@ -5,7 +5,7 @@
//
// Provider / region / language identifiers are proper nouns or codes, so
// they stay as data constants; only descriptive prose goes through i18n.
import { RAlert, RIcon, RSelect, RBtn, RSpinner } from "@v2/lib";
import { RAlert, RSelect, RBtn, RSpinner } from "@v2/lib";
import { storeToRefs } from "pinia";
import { computed, onBeforeUnmount, onMounted, reactive, ref } from "vue";
import { useI18n } from "vue-i18n";
@@ -503,13 +503,10 @@ onBeforeUnmount(() =>
searchable
:disabled="!canEdit"
:placeholder="t('settings.scan-media-placeholder')"
:info="t('settings.scan-media-note')"
hide-details
@update:model-value="setMedia"
/>
<p class="r-v2-scan-settings__note">
<RIcon icon="mdi-information-outline" size="13" />
{{ t("settings.scan-media-note") }}
</p>
</div>
</SettingsSection>
@@ -618,7 +615,6 @@ onBeforeUnmount(() =>
color: var(--r-color-fg-muted);
font-size: 13px;
line-height: 1.5;
max-width: 680px;
}
/* When a description sits directly above a field block, drop its bottom
padding so the field's own padding provides the gap. */
@@ -636,15 +632,6 @@ onBeforeUnmount(() =>
border-top: 1px solid var(--r-color-border);
}
.r-v2-scan-settings__note {
margin: 0;
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--r-color-fg-faint);
}
.r-v2-scan-settings__toggle-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));