Skip to content

Commit

Permalink
fix: ui responsivity
Browse files Browse the repository at this point in the history
  • Loading branch information
dancixx committed Feb 11, 2025
1 parent 58a3909 commit 15e0e0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ pub fn component() -> impl IntoView {
div().class("overflow-auto text-white font-mono").child((
header::component,
main()
.class("container flex flex-col gap-8 px-4 pt-10 pb-14 mx-auto mt-16 max-w-4xl md:px-0")
.class("container flex flex-col gap-8 px-4 pt-10 pb-20 mx-auto mt-16 max-w-4xl md:px-0")
.child(FlatRoutes(
FlatRoutesProps::builder()
.fallback(|| {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn component() -> impl IntoView {
});

let children = move |post: Post| {
div().class("flex flex-col items-center mx-auto max-w-3xl").child(
div().class("flex flex-col w-full items-center mx-auto max-w-3xl").child(
(
Show(ShowProps::builder()
.when({
Expand All @@ -44,7 +44,7 @@ pub fn component() -> impl IntoView {
).build(),
),
Title(TitleProps::builder().text(post.title.to_string()).build()),
article().child((
article().class("w-full").child((
div().class("flex flex-col gap-4 mx-auto max-w-3xl").child((
p().class("text-4xl font-semibold").child(post.title.clone()),
div().class("flex gap-3 justify-start items-center text-sm text-muted-foreground").child((
Expand Down

0 comments on commit 15e0e0e

Please sign in to comment.