fix(ui): show title tooltips on disabled showcase media control buttons

This commit is contained in:
Will Miao
2026-06-03 20:33:58 +08:00
parent c8beaa64e1
commit 1beef5dea9
3 changed files with 10 additions and 4 deletions

View File

@@ -256,7 +256,7 @@ function renderMediaItem(img, index, exampleFiles) {
<button class="media-control-btn example-delete-btn ${!isCustomImage ? 'disabled' : ''}"
title="${isCustomImage ? 'Delete this example' : 'Only custom images can be deleted'}"
data-short-id="${img.id || ''}"
${!isCustomImage ? 'disabled' : ''}>
${!isCustomImage ? 'aria-disabled="true"' : ''}>
<i class="fas fa-trash-alt"></i>
<i class="fas fa-check confirm-icon"></i>
</button>