Skip to content

Commit

Permalink
Fix <textarea> Resizing Issue
Browse files Browse the repository at this point in the history
Updated the textarea element within the settings page with two changes:
- The textarea now cannot be resized, and is always set to fill 100% of its container.
- The placeholder is now "Enter your own prompt for AI reflections" instead of "Paste an OpenAI API key to enable AI reflections". You can't see this because the textarea is currently readonly, but I assume this will change in the near future.
  • Loading branch information
CodeShady authored Nov 9, 2023
1 parent 4391d33 commit 39c9b42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/renderer/pages/Pile/Settings/Settings.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ input {
font-size: 14px;
line-height: 1.35;
min-height: 150px;
width: 100%; /* Ensure the width is 100%, no less, no more */
resize: none; /* Prevent resizing */
color: var(--primary);
background: var(--bg-tertiary);
border: none;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/Pile/Settings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function Settings() {
</label>
<textarea
className={styles.Textarea}
placeholder="Paste an OpenAI API key to enable AI reflections"
placeholder="Enter your own prompt for AI reflections"
value={prompt}
readOnly
/>
Expand Down

0 comments on commit 39c9b42

Please sign in to comment.