Skip to content

Commit a1e5875

Browse files
committed
Improved custom tweak preview appearance
1 parent 886f53c commit a1e5875

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

src/components/tabs/custom/add-tweak-form.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
Group,
99
NativeSelect,
1010
Stack,
11-
Text,
1211
Textarea,
1312
TextInput,
1413
Title,
@@ -149,9 +148,22 @@ export const AddTweakForm: React.FC = () => {
149148
/>
150149

151150
{preview && (
152-
<Text size='sm' c='dimmed'>
153-
Preview (first line): <code>{preview}</code>
154-
</Text>
151+
<Textarea
152+
label='Preview (decoded first line)'
153+
value={preview}
154+
readOnly
155+
disabled
156+
autosize
157+
minRows={2}
158+
maxRows={3}
159+
style={{ flex: 1 }}
160+
styles={{
161+
input: {
162+
fontFamily: 'monospace',
163+
fontSize: '12px',
164+
},
165+
}}
166+
/>
155167
)}
156168

157169
{error && (

0 commit comments

Comments
 (0)