From 6da2284eade733b4abe0723c92b7e42ef54bec8f Mon Sep 17 00:00:00 2001 From: hypercross Date: Sat, 28 Feb 2026 14:27:54 +0800 Subject: [PATCH] fix: alert sizing --- src/App.tsx | 2 +- src/components/md-table.tsx | 2 +- src/styles.css | 17 +++++++++++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 761b516..451875e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -43,7 +43,7 @@ const App: Component = () => {
-
+
); diff --git a/src/components/md-table.tsx b/src/components/md-table.tsx index 3f1c230..9b6adc9 100644 --- a/src/components/md-table.tsx +++ b/src/components/md-table.tsx @@ -179,7 +179,7 @@ customElement('md-table', { roll: false, remix: false }, (props, { element }) => -
+
0}>
diff --git a/src/styles.css b/src/styles.css index e209c34..cbe0bec 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,14 +1,27 @@ @import "tailwindcss"; @plugin "@tailwindcss/typography"; -.markdown-alert { - @apply px-4 rounded mb-4 border; +.prose { + @apply prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h5:first:mt-0; } .markdown-alert-title{ @apply hidden; } +.markdown-alert-title + h1, +.markdown-alert-title + h2, +.markdown-alert-title + h3, +.markdown-alert-title + h4, +.markdown-alert-title + h5 +{ + @apply mt-0; +} + +.markdown-alert { + @apply px-4 pt-4 rounded mb-4 border; +} + .markdown-alert-note { @apply bg-blue-50 border-blue-500; }