aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorboasting-squirrel <boasting.squirrel@gmail.com>2019-04-06 16:43:57 +0000
committerboasting-squirrel <boasting.squirrel@gmail.com>2019-04-06 16:43:57 +0000
commit61cae15740fbbe8da48349e22f440956df960c2f (patch)
tree6d4a7fe9b3d6a00326098b344ac28118b7323fed
parentImproved design (diff)
downloadminiserve-61cae15740fbbe8da48349e22f440956df960c2f.tar.gz
miniserve-61cae15740fbbe8da48349e22f440956df960c2f.zip
Added flex wrap to handle overflow on mobile
-rw-r--r--src/renderer.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 5a85c35..9fa977e 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -489,11 +489,12 @@ fn css(color_scheme: &themes::ColorScheme) -> Markup {
background: {back_button_background_hover};
}}
.toolbar {{
- margin-top: 2rem;
display: flex;
justify-content: space-between;
+ flex-wrap: wrap;
}}
.download {{
+ margin-top: 1rem;
padding: 0.125rem;
display: flex;
flex-direction: row;
@@ -516,6 +517,7 @@ fn css(color_scheme: &themes::ColorScheme) -> Markup {
margin-right: 1rem;
}}
.upload {{
+ margin-top: 1rem;
display: flex;
justify-content: flex-end;
}}