mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user