mirror of
https://github.com/photoprism/photoprism.git
synced 2026-07-17 16:49:04 +00:00
Frontend: Skip sidebar row tooltip when no icon anchors it #4966
Notes uses `icon: null` so Vuetify's default `'end center'` tooltip location anchors against an empty prepend slot, putting the tooltip in a visually inconsistent place vs sibling rows. Gate the tooltip on the row having an icon so Notes (and any future no-icon row in detailsFields) skips the tooltip entirely — matches Title and Caption above which never had one. The "Notes" / placeholder text is already visible inline as the add-prompt, so no information is lost.
This commit is contained in:
parent
15dabc5dcd
commit
f741f8e103
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@
|
|||
<v-divider v-if="f.key === 'notes' && showRightsDivider" class="my-3 meta-rights-divider"></v-divider>
|
||||
<v-list-item
|
||||
v-show="shouldShowFieldRow(f)"
|
||||
v-tooltip="f.label"
|
||||
v-tooltip="f.icon ? f.label : null"
|
||||
:prepend-icon="f.icon"
|
||||
:class="['metadata__item', `meta-${f.key}`, { clickable: editingField !== f.key && (isEditable || f.read(photo)) }]"
|
||||
@click.stop="onTextRowClick(f.key, f.read(photo))"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue