diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-04-07 11:16:06 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-04-07 11:16:06 +0000 |
commit | e7e183e75794cfdb899ce1762d3d9ba38a923cc3 (patch) | |
tree | ebdb7e163df7a2ddc0acaf66e4e5c38d78c05d3f /src | |
parent | Use strum on Enums to reduce boilerplate (diff) | |
download | miniserve-e7e183e75794cfdb899ce1762d3d9ba38a923cc3.tar.gz miniserve-e7e183e75794cfdb899ce1762d3d9ba38a923cc3.zip |
Fix CSS bug
Diffstat (limited to 'src')
-rw-r--r-- | src/renderer.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index 909ee75..d682ee4 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -271,6 +271,8 @@ fn css(color_scheme: &themes::ColorScheme) -> Markup { html {{ font-smoothing: antialiased; text-rendering: optimizeLegibility; + width: 100%; + height: 100%; }} body {{ margin: 0; @@ -279,6 +281,8 @@ fn css(color_scheme: &themes::ColorScheme) -> Markup { color: {text_color}; background: {background}; position: relative; + width: 100%; + height: 100%; }} .container {{ padding: 1.5rem 5rem; |