File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const props = withDefaults(
16
16
language? : string
17
17
copyPlacement? : ' top-right' | ' bottom-right' | ' outside' | ' none'
18
18
copyMessage? : string
19
+ wordWrap? : boolean
19
20
}>(),
20
21
{
21
22
followHeightOf: null ,
@@ -47,7 +48,7 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
47
48
:style =" height ? `min-height: ${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : ''"
48
49
>
49
50
<n-config-provider :hljs =" hljs" >
50
- <n-code :code =" value" :language =" language" :trim =" false" data-test-id =" area-content" />
51
+ <n-code :code =" value" :language =" language" :word-wrap = " wordWrap " : trim =" false" data-test-id =" area-content" />
51
52
</n-config-provider >
52
53
</n-scrollbar >
53
54
<div absolute right-10px top-10px >
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ const compressedZlibOutput = computed(() => withDefaultOnError(() => Base64.from
33
33
<h3 >GZIP compressed string</h3 >
34
34
<TextareaCopyable
35
35
:value =" compressedGzipOutput"
36
+ :word-wrap =" true"
37
+ multiline
36
38
placeholder =" The GZip compressed version of your string will be here"
37
39
mb-5
38
40
/>
@@ -42,6 +44,8 @@ const compressedZlibOutput = computed(() => withDefaultOnError(() => Base64.from
42
44
<h3 >Zlib compressed string</h3 >
43
45
<TextareaCopyable
44
46
:value =" compressedZlibOutput"
47
+ :word-wrap =" true"
48
+ multiline
45
49
placeholder =" The Zlib compressed version of your string will be here"
46
50
mb-5
47
51
/>
@@ -51,6 +55,8 @@ const compressedZlibOutput = computed(() => withDefaultOnError(() => Base64.from
51
55
<h3 >Deflate compressed string</h3 >
52
56
<TextareaCopyable
53
57
:value =" compressedDeflateOutput"
58
+ :word-wrap =" true"
59
+ multiline
54
60
placeholder =" The Deflate compressed version of your string will be here"
55
61
mb-5
56
62
/>
@@ -71,6 +77,8 @@ const compressedZlibOutput = computed(() => withDefaultOnError(() => Base64.from
71
77
<h3 >Decompressed string</h3 >
72
78
<TextareaCopyable
73
79
v-model:value =" decompressedOutput"
80
+ :word-wrap =" true"
81
+ multiline
74
82
placeholder =" The decompressed string will be here"
75
83
mb-5
76
84
/>
You can’t perform that action at this time.
0 commit comments