Skip to content

Commit 7a74c85

Browse files
committed
refactor(ascii-generator): equilibrate ui
1 parent 8301489 commit 7a74c85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tools/ascii-text-drawer/ascii-text-drawer.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const width = useStorage('ascii-text-drawer:width', 80);
88
const output = ref('');
99
const errored = ref(false);
1010
const processing = ref(false);
11+
1112
figlet.defaults({ fontPath: '//unpkg.com/[email protected]/fonts/' });
1213
1314
watchEffect(async () => {
@@ -46,6 +47,8 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
4647
label="Your text:"
4748
placeholder="Your text to draw"
4849
raw-text
50+
multiline
51+
rows="4"
4952
/>
5053

5154
<n-divider />
@@ -63,7 +66,7 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
6366
</n-gi>
6467
<n-gi span="2">
6568
<n-form-item label="Width:" label-placement="top" label-width="100" :show-feedback="false">
66-
<n-input-number v-model:value="width" min="0" max="10000" w-100px />
69+
<n-input-number v-model:value="width" min="0" max="10000" w-full placeholder="Width of the text" />
6770
</n-form-item>
6871
</n-gi>
6972
</n-grid>
@@ -72,6 +75,7 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
7275

7376
<div v-if="processing" flex items-center justify-center>
7477
<n-spin size="medium" />
78+
<span class="ml-2">Loading font...</span>
7579
</div>
7680

7781
<c-alert v-if="errored" mt-1 text-center type="error">

0 commit comments

Comments
 (0)