fix(secrets): keep readonly secret names legible instead of dimming them (#4942)

* fix(secrets): keep readonly secret names legible instead of dimming them

Readonly viewers saw the workspace secret name at opacity-50 while the
masked value rendered at full opacity, an inconsistent and hostile
treatment of content they need to read. Drop the opacity dim on the
non-renameable key; non-editability is already conveyed by the read-only
field and absent edit affordances.

* fix(secrets): use cursor-text on readonly key to hint selectability
This commit is contained in:
Waleed
2026-06-09 22:50:28 -07:00
committed by GitHub
parent 272bad9718
commit 29ee6a7662
@@ -181,7 +181,7 @@ function WorkspaceVariableRow({
return (
<div className='contents'>
<ChipInput
className={cn(!canRename && 'cursor-not-allowed opacity-50')}
className={cn(!canRename && 'cursor-text')}
value={renamingKey === envKey ? pendingKeyValue : envKey}
onChange={(e) => {
if (renamingKey !== envKey) onRenameStart(envKey)