perf: add line break to command display
This commit is contained in:
parent
c7a365e8e9
commit
566a7e212f
|
@ -76,10 +76,10 @@ const columns = computed(() => [
|
||||||
return h(
|
return h(
|
||||||
'div',
|
'div',
|
||||||
null,
|
null,
|
||||||
map(cmdList, (c) => h('div', null, c)),
|
map(cmdList, (c) => h('div', { class: 'cmd-line' }, c)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return cmd
|
return h('div', { class: 'cmd-line' }, cmd)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -89,10 +89,10 @@ const columns = computed(() => [
|
||||||
return h(
|
return h(
|
||||||
'div',
|
'div',
|
||||||
null,
|
null,
|
||||||
map(cmdList, (c) => h('div', null, c)),
|
map(cmdList, (c) => h('div', { class: 'cmd-line' }, c)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return cmd
|
return h('div', { class: 'cmd-line' }, cmd)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,3 +15,9 @@
|
||||||
|
|
||||||
.tab-content {
|
.tab-content {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(.cmd-line) {
|
||||||
|
word-wrap: break-word;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue