fix: code height limite show, close #565

This commit is contained in:
YunYouJun 2025-07-12 21:19:55 +08:00
parent 8550cb01bd
commit 499bd555f1
1 changed files with 2 additions and 1 deletions

View File

@ -37,8 +37,9 @@ export function useCollapseCode() {
const el = e.target as HTMLElement
if (el.matches('[class*="language-"] > button.collapse')) {
const parent = el.parentElement
parent?.removeAttribute('style')
parent?.classList.remove('folded')
const codeHeightLimitClass = `max-h-${codeHeightLimit}px`
parent?.classList.remove(codeHeightLimitClass)
}
})