mirror of https://github.com/YunYouJun/valaxy
fix: code height limite show, close #565
This commit is contained in:
parent
8550cb01bd
commit
499bd555f1
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue