Skip to content

Commit 8c89986

Browse files
committed
improve mobile sizing and buttons
1 parent 0cd28bc commit 8c89986

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

assets/tailwind.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,8 @@ video {
907907
height: 100vh;
908908
}
909909

910-
.max-h-80 {
911-
max-height: 20rem;
910+
.max-h-40 {
911+
max-height: 10rem;
912912
}
913913

914914
.max-h-\[60vh\] {
@@ -2396,6 +2396,10 @@ video {
23962396
height: 34.6875rem;
23972397
}
23982398

2399+
.lg\:max-h-80 {
2400+
max-height: 20rem;
2401+
}
2402+
23992403
.lg\:w-1\/3 {
24002404
width: 33.333333%;
24012405
}

src/components/homepage/hero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub(crate) fn Hero() -> Element {
3535
}
3636
}
3737
}
38-
div { class: "lg:pb-12 h-screen max-h-80",
38+
div { class: "lg:pb-12 h-screen max-h-40 lg:max-h-80 my-8",
3939
img {
4040
src: asset!("/assets/static/multiplatform-dark.svg"),
4141
class: "dark:hidden w-full h-full",

src/components/nav.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ pub(crate) static SHOW_SEARCH: GlobalSignal<bool> = Signal::global(|| false);
88

99
pub(crate) fn Nav() -> Element {
1010
let route: Route = use_route();
11-
let is_docs = matches!(route, Route::Docs06 { .. });
11+
let is_docs = matches!(
12+
route,
13+
Route::Docs06 { .. } | Route::Docs05 { .. } | Route::Docs04 { .. } | Route::Docs03 { .. }
14+
);
1215

1316
rsx! {
1417
SearchModal {}

0 commit comments

Comments
 (0)