Commit 94a2bb1
committed
improvement(rich-md-editor): make read-only PromptEditor fully display-only
Greptile P2: a padding click on the read-only editor still focused the
non-editable textarea, which can read as editable. Gate the surface-click
focus on `!readOnly`, and drop the blinking caret (`caret-transparent` +
`cursor-default`) in read-only mode. Text stays selectable for copy.1 parent 67f9de3 commit 94a2bb1
1 file changed
Lines changed: 5 additions & 3 deletions
File tree
- apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/prompt-editor
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | | - | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
192 | | - | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
0 commit comments