Commit 02b3cd2a13

02b3cd2a134fc6ee20728309f1a8a8602c79692d

parent: 1699502002

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-05-29 16:19 UTC

unfuck the fuck thats caused by previous unfuck

Layout: unified · split

docs/.vitepress/theme/Layout.vue +17 −1
@@ -361,9 +361,25 @@ const reloadTakodachi = () => {
361361 }
362362}
363363
364function initTitleOnly() {
365 document.querySelectorAll('.custom-block').forEach(block => {
366 const children = [...block.children]
367 const hasOnlyTitle = children.every(el => el.classList.contains('custom-block-title'))
368 if (hasOnlyTitle) block.classList.add('title-only')
369 })
370}
371
372watch(
373 () => route.path,
374 () => nextTick(() => initTitleOnly()),
375 { flush: 'post' }
376)
377
364378onMounted(() => {
365379 if (import.meta.env.SSR) return
366380
381 initTitleOnly()
382
367383 // Icon tooltip: fixed-position popup appended to <body> to escape table overflow clipping
368384 const tooltipEl = document.createElement('div')
369385 tooltipEl.className = 'icon-tip-popup'
@@ -610,4 +626,4 @@ onUnmounted(() => {
610626 </span>
611627 </template>
612628 </Layout>
613</template>
629</template>
\ No newline at end of file
docs/.vitepress/theme/styles/style.scss +4 −2
@@ -1672,6 +1672,8 @@ html.reduce-blur-effects {
16721672 margin-top: 3px;
16731673}
16741674
1675.vp-doc .custom-block {
1675/* so that the gap only applies to title only blocks. check layout.vue for initTitleOnly() */
1676
1677.vp-doc .custom-block.title-only {
16761678 padding-bottom: 16px;
1677}
1679}
\ No newline at end of file