chore: minor tweaks

pull/2912/merge
Divyansh Singh 6 months ago
parent 3ec48f19a2
commit 9b2dd504fa

@ -291,11 +291,7 @@ watch(results, (r) => {
function scrollToSelectedResult() {
nextTick(() => {
const selectedEl = document.querySelector('.result.selected')
if (selectedEl) {
selectedEl.scrollIntoView({
block: 'nearest'
})
}
selectedEl?.scrollIntoView({ block: 'nearest' })
})
}

@ -86,7 +86,7 @@ function createCodeGroup(options: Options): ContainerArgs {
if (tokens[idx].nesting === 1) {
const name = nanoid(5)
let tabs = ''
let checked = 'checked="checked"'
let checked = 'checked'
for (
let i = idx + 1;

Loading…
Cancel
Save