fix(v2): match the folder mappings help button to the Scan view

Use the same info button (no native tooltip) and center the note icon in
the mapping types dialog.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
This commit is contained in:
zurdi
2026-09-17 18:50:41 +02:00
parent e78b972aef
commit 5d58f9177c

View File

@@ -359,18 +359,14 @@ onMounted(async () => {
row-height="44px"
@update:sort="onSort"
>
<!-- Help affordance lives next to the "Type" header label — a
small `?` icon that opens the mapping-types dialog. Sits
where the user is most likely to wonder what alias / variant
mean (instead of competing with the search in the toolbar). -->
<!-- Next to the "Type" label, where alias / variant raise the question;
same info button as the Scan view. -->
<template #header.type>
<RBtn
variant="text"
size="x-small"
icon="mdi-help-circle-outline"
class="r-v2-mappings__help-icon"
size="small"
icon="mdi-information-outline"
:aria-label="t('settings.mapping-types')"
:title="t('settings.mapping-types')"
@click="helpOpen = true"
/>
</template>
@@ -474,21 +470,6 @@ onMounted(async () => {
flex: 1;
}
/* Help affordance inside the "Type" column header — a small, muted
icon that tints to fg on hover. Negative inline-end margin keeps it
visually attached to the label without enlarging the header gap. */
.r-v2-mappings__help-icon {
color: var(--r-color-fg-faint) !important;
width: 22px !important;
height: 22px !important;
min-width: 0 !important;
margin-left: 2px !important;
}
.r-v2-mappings__help-icon:hover {
color: var(--r-color-fg) !important;
background: var(--r-color-surface-hover) !important;
}
.r-v2-mappings__folder {
font-weight: var(--r-font-weight-medium);
white-space: nowrap;
@@ -575,7 +556,7 @@ html[data-bp~="xs"]
margin: 4px 0 0;
padding: 10px 12px;
display: inline-flex;
align-items: flex-start;
align-items: center;
gap: 10px;
border-radius: 8px;
background: color-mix(in srgb, var(--r-color-brand-primary) 8%, transparent);