Skip to content

Commit

Permalink
Fix top padding
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechu10 committed Oct 17, 2024
1 parent 68f9dfe commit f162972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/book.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn BookBody(section: String, #[prop(!optional)] doc: Option<String>) -> 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)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f162972

Please sign in to comment.