fix(editor): add visual indication for non-editing shortcut IDs

This commit is contained in:
t8y2
2026-07-01 14:49:35 +08:00
parent d30d47ccda
commit 23ab48bfb7
@@ -2150,6 +2150,7 @@ onUnmounted(cleanupPreviewEditor);
>
<X class="h-4 w-4" />
</Button>
<span v-else-if="editingShortcutId !== definition.id" class="h-7 w-7 shrink-0" aria-hidden="true" />
</div>
<p v-if="shortcutConflicts.includes(definition.id)" class="text-xs text-destructive">
{{ t("settings.shortcutConflict") }}
@@ -2830,6 +2831,7 @@ onUnmounted(cleanupPreviewEditor);
>
<X class="h-4 w-4" />
</Button>
<span v-else-if="editingShortcutId !== definition.id" class="h-7 w-7 shrink-0" aria-hidden="true" />
</div>
<p v-if="shortcutConflicts.includes(definition.id)" class="text-xs text-destructive">
{{ t("settings.shortcutConflict") }}