Skip to content

Commit

Permalink
docs: fix logs separator in repl
Browse files Browse the repository at this point in the history
  • Loading branch information
artalar committed Jul 24, 2023
1 parent d0eb3b4 commit c5f7baa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/src/components/Repl.astro
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ numberAtom(ctx, (s) => s + 1)
button.innerText = '⌛'

try {
const lastLogRecord = logsEl.children[logsEl.children.length - 1]
if (lastLogRecord instanceof HTMLHRElement == false) {
const { length } = logsEl.children
const lastLogRecord = logsEl.children[length - 1]
if (length && lastLogRecord instanceof HTMLHRElement == false) {
const br = document.createElement('hr')
logsEl.appendChild(br)
}
Expand Down Expand Up @@ -156,7 +157,9 @@ numberAtom(ctx, (s) => s + 1)
:global(aside) {
display: none;
padding: 0.5rem;
max-height: calc(100vh - calc(var(--sl-nav-height) + var(--sl-mobile-toc-height)));
max-height: calc(
100vh - calc(var(--sl-nav-height) + var(--sl-mobile-toc-height))
);
overflow-y: scroll;
}

Expand Down

0 comments on commit c5f7baa

Please sign in to comment.