From f162972095c8921e77d7b351020fc3f1f5716fa6 Mon Sep 17 00:00:00 2001 From: Luke Chu <37006668+lukechu10@users.noreply.github.com> Date: Thu, 17 Oct 2024 23:38:12 +0100 Subject: [PATCH] Fix top padding --- src/pages/book.rs | 2 +- src/pages/post.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/book.rs b/src/pages/book.rs index 044b243..1ed0a30 100644 --- a/src/pages/book.rs +++ b/src/pages/book.rs @@ -46,7 +46,7 @@ fn BookBody(section: String, #[prop(!optional)] doc: Option) -> View { ServerTitle(title=title) div(class="flex flex-row gap-4 w-full justify-center") { BookSidebar {} - div(class="grow-0 min-w-0 px-2 pt-0 pb-10 sm:pt-5 prose prose-gray md:w-[75ch]") { + div(class="grow-0 min-w-0 px-2 pt-5 pb-10 prose prose-gray md:w-[75ch]") { mdsycx::MDSycX(body=parsed.body) } HeadingsOutline(headings=parsed.headings) diff --git a/src/pages/post.rs b/src/pages/post.rs index dba2c3b..c7c6960 100644 --- a/src/pages/post.rs +++ b/src/pages/post.rs @@ -30,7 +30,7 @@ pub fn PostBody(id: String) -> View { view! { ServerTitle(title=parsed.front_matter.title.clone()) - div(class="mx-auto px-2 pt-0 pb-10 sm:pt-5 prose prose-gray") { + div(class="mx-auto px-2 pt-5 pb-10 prose prose-gray") { span(class="text-sm") { (parsed.front_matter.date.to_string()) } mdsycx::MDSycX(body=parsed.body) }