fix: page renders with initial linebreak
This commit is contained in:
parent
d076899045
commit
98a03dc4b3
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,7 @@ onMounted(() => {
|
||||||
|
|
||||||
function handlePageChange() {
|
function handlePageChange() {
|
||||||
const { title, headerArt, content, uris } = getCurrentPage(page.value.title)
|
const { title, headerArt, content, uris } = getCurrentPage(page.value.title)
|
||||||
addText(`${headerArt}\n${title}\n\n${content}`)
|
addText(`\n${headerArt}\n${title}\n\n${content}`)
|
||||||
setFooter(uris)
|
setFooter(uris)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,6 +71,7 @@ onMounted(() => {
|
||||||
footerLinks,
|
footerLinks,
|
||||||
setFooter
|
setFooter
|
||||||
} = useTerminal(textArea.value, commands.value, pages, handlePageChange)
|
} = useTerminal(textArea.value, commands.value, pages, handlePageChange)
|
||||||
|
|
||||||
handlePageChange()
|
handlePageChange()
|
||||||
|
|
||||||
watch(footerLinks, () => {
|
watch(footerLinks, () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue