mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
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:
1 parent
922fe5e4cf
commit
a27c0bf860
1 file changed
+2
-2
@@ -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>}
|
||||
|
||||
Reference in new issue
Block a user