Show a read-only node editor as a short lock label

The reason, outside a studio world, moves to the label's tooltip so the
header stays on one line.
This commit is contained in:
piexel committed 2026-11-06 05:15:02 +01:00
1 parent 922fe5e4cf
commit a27c0bf860
1 file changed
+2 -2
+2 -2
View File
@@ -27,9 +27,9 @@ export function NodePane({ editor, entryKey, selected, onSelect }: NodePaneProps
<span className="min-w-0 truncate text-[11.5px] text-secondary-text">{state?.file ?? entryKey}</span>
<span className="flex-1" />
{state?.locked != null && (
<span className="flex items-center gap-1 text-[11.5px] text-secondary-text">
<span className="flex shrink-0 items-center gap-1 text-[11.5px] whitespace-nowrap text-secondary-text" title={state.locked}>
<Lock className="size-3.5" />
{state.locked}
Read only
</span>
)}
{editor.saving && <span className="text-[11.5px] text-secondary-text">Saving…</span>}