design: reduce padding for pre in tabs

This commit is contained in:
Julien Calixte
2026-04-27 16:10:54 +02:00
parent 37b39a6d96
commit 367209f198
2 changed files with 6 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ const md = new MarkdownIt({
const isChecked = data.isActive || (!currentTabActiveSet && data.index === 0) const isChecked = data.isActive || (!currentTabActiveSet && data.index === 0)
const checked = isChecked ? " checked" : "" const checked = isChecked ? " checked" : ""
const title = data.title.replace(/"/g, """) const title = data.title.replace(/"/g, """)
return `<input type="radio" name="md-tabs-${currentTabGroup}" class="tab" aria-label="${title}"${checked}>\n<div class="tab-content bg-base-100 border-base-300 rounded-box p-6">\n` return `<input type="radio" name="md-tabs-${currentTabGroup}" class="tab" aria-label="${title}"${checked}>\n<div class="tab-content bg-base-100 border-base-300 rounded-box p-2">\n`
}, },
tabCloseRender: () => "</div>\n" tabCloseRender: () => "</div>\n"
}) })

View File

@@ -233,3 +233,8 @@ iframe {
.todo-notes li:has(> input[type="checkbox"]) { .todo-notes li:has(> input[type="checkbox"]) {
list-style: none; list-style: none;
} }
:where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}