Skip to content

Commit a006f9d

Browse files
authored
Merge pull request #181 from wzwywx/fix-overlap
Fix left sidebar overlapping with the main content
2 parents 20683e8 + 9a57933 commit a006f9d

File tree

7 files changed

+60
-7
lines changed

7 files changed

+60
-7
lines changed

dioxus_search/index_search.bin

-221 KB
Binary file not shown.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
box-sizing: border-box;
115115
min-width: 200px;
116116
max-width: 980px;
117-
margin: 0 10%;
117+
margin: 0 5%;
118118
/* padding: 45px; */
119119
list-style: disc;
120120
}

public/tailwind.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,22 @@ video {
837837
margin-top: auto;
838838
}
839839

840+
.ml-\[em\] {
841+
margin-left: em;
842+
}
843+
844+
.ml-\[12em\] {
845+
margin-left: 12em;
846+
}
847+
848+
.ml-40 {
849+
margin-left: 10rem;
850+
}
851+
852+
.ml-\[13rem\] {
853+
margin-left: 13rem;
854+
}
855+
840856
.block {
841857
display: block;
842858
}
@@ -2292,6 +2308,12 @@ video {
22922308
}
22932309
}
22942310

2311+
@media (min-width: 320px) {
2312+
.min-\[320px\]\:bg-inherit {
2313+
background-color: inherit;
2314+
}
2315+
}
2316+
22952317
@media (min-width: 640px) {
22962318
.sm\:-m-4 {
22972319
margin: -1rem;
@@ -2643,6 +2665,10 @@ video {
26432665
margin-top: 0px;
26442666
}
26452667

2668+
.lg\:ml-\[13rem\] {
2669+
margin-left: 13rem;
2670+
}
2671+
26462672
.lg\:block {
26472673
display: block;
26482674
}
@@ -2739,11 +2765,26 @@ video {
27392765
}
27402766
}
27412767

2768+
@media (min-width: 1220px) {
2769+
.min-\[1220px\]\:bg-inherit {
2770+
background-color: inherit;
2771+
}
2772+
}
2773+
27422774
@media (min-width: 1280px) {
27432775
.xl\:col-span-6 {
27442776
grid-column: span 6 / span 6;
27452777
}
27462778

2779+
.xl\:mx-auto {
2780+
margin-left: auto;
2781+
margin-right: auto;
2782+
}
2783+
2784+
.xl\:ml-\[13rem\] {
2785+
margin-left: 13rem;
2786+
}
2787+
27472788
.xl\:block {
27482789
display: block;
27492790
}
@@ -2752,6 +2793,10 @@ video {
27522793
display: flex;
27532794
}
27542795

2796+
.xl\:hidden {
2797+
display: none;
2798+
}
2799+
27552800
.xl\:h-\[31\.625rem\] {
27562801
height: 31.625rem;
27572802
}
@@ -2764,6 +2809,10 @@ video {
27642809
grid-template-columns: repeat(4, minmax(0, 1fr));
27652810
}
27662811

2812+
.xl\:bg-inherit {
2813+
background-color: inherit;
2814+
}
2815+
27672816
.xl\:px-48 {
27682817
padding-left: 12rem;
27692818
padding-right: 12rem;

src/components/deploy.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn Deploy(cx: Scope) -> Element {
3030
}
3131
}
3232
div { class: "max-w-screen-lg mx-auto px-4 py-16 flex flex-col md:flex-row justify-center ",
33-
div { class: "max-w-lg bg-gray-100 flex-1 mx-4 my-4 p-8 rounded-lg shadow-xl mx-auto text-center",
33+
div { class: "max-w-lg bg-gray-100 flex-1 my-4 p-8 rounded-lg shadow-xl mx-auto text-center",
3434
h1 { class: "text-3xl pb-4", "Build" }
3535
p { class: "text-gray-500 font-light1 border-b border-gray-200 pb-4",
3636
"Iterate on your app with first-class tooling designed for the Dioxus ecosystem. "
@@ -43,7 +43,7 @@ pub fn Deploy(cx: Scope) -> Element {
4343
li { class: "pb-4", "💪 Powerful devtools" }
4444
}
4545
}
46-
div { class: "max-w-lg bg-gray-100 flex-1 mx-4 my-4 p-8 rounded-lg shadow-xl mx-auto text-center",
46+
div { class: "max-w-lg bg-gray-100 flex-1 my-4 p-8 rounded-lg shadow-xl mx-auto text-center",
4747
h1 { class: "text-3xl pb-4", "Deploy" }
4848
p { class: "text-gray-500 font-light1 border-b border-gray-200 pb-4",
4949
"Iterate on your app with first-class tooling designed for the Dioxus ecosystem. "
@@ -56,7 +56,7 @@ pub fn Deploy(cx: Scope) -> Element {
5656
li { class: "pb-4", "🧯 Automated backups" }
5757
}
5858
}
59-
div { class: "max-w-lg bg-gray-100 flex-1 mx-4 my-4 p-8 rounded-lg shadow-xl mx-auto text-center",
59+
div { class: "max-w-lg bg-gray-100 flex-1 my-4 p-8 rounded-lg shadow-xl mx-auto text-center",
6060
h1 { class: "text-3xl pb-4", "Scale" }
6161
p { class: "text-gray-500 font-light1 border-b border-gray-200 pb-4",
6262
"Monitor your app, track down bugs, and grow to as big or as small as you need."

src/components/learn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ fn Content(cx: Scope) -> Element {
238238
};
239239

240240
render! {
241-
section { class: "text-gray-600 body-font overflow-hidden dark:bg-ideblack mx-auto container pt-6 pb-12 max-w-screen-lg",
241+
section { class: "text-gray-600 body-font overflow-hidden dark:bg-ideblack lg:ml-[13rem] container pt-6 pb-12 max-w-screen-lg",
242242
div { class: "-py-8 {extra_class}",
243243
div { class: "flex w-full mb-20 flex-wrap list-none",
244244
style {

src/components/nav.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ fn SearchModal(cx: Scope) -> Element {
237237
let show_modal = use_atom_state(cx, &SHOW_SEARCH);
238238
let search_text = use_state(cx, String::new);
239239
let results = use_ref(cx, || SEARCH_INDEX.search(search_text.get()));
240-
240+
241241
let last_key_press = use_ref(cx, || {
242242
#[cfg(not(target_arch = "wasm32"))]
243243
return 0.;

src/doc_examples/readme_expanded.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ fn app(cx: Scope) -> Element {
8888
key: None,
8989
// The static template this node will use. The template is stored in a Cell so it can be replaced with a new template when hot rsx reloading is enabled
9090
template: std::cell::Cell::new(TEMPLATE),
91-
root_ids: dioxus::core::exports::bumpalo::collections::Vec::with_capacity_in(3, __cx.bump()).into(),
91+
root_ids: dioxus::core::exports::bumpalo::collections::Vec::with_capacity_in(
92+
3,
93+
__cx.bump(),
94+
)
95+
.into(),
9296
dynamic_nodes: __cx.bump().alloc([
9397
// The dynamic count text node (dynamic node id 0)
9498
__cx.text_node(format_args!("High-Five counter: {0}", count)),

0 commit comments

Comments
 (0)