From 36bf7cb02fc9e9bb403500f69a748d642c9648d1 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Thu, 16 Nov 2023 20:39:21 +0100 Subject: [PATCH] Scale the SVG to the viewport width on the website --- static/style.css | 6 +++++- views/index.tpl | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index 83ebb98..6b555bc 100644 --- a/static/style.css +++ b/static/style.css @@ -54,7 +54,11 @@ div.form * input[type=submit] { border: 1px solid #229; padding: 1em; display: block; - width: fit-content; background: #888; border-radius: 2em; } + +#svgcontainer svg { + width: 100%; + height: auto; +} diff --git a/views/index.tpl b/views/index.tpl index 8e8d33e..8039449 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -29,8 +29,8 @@ - -
+ +
Map will appear here.

This map generator was built by Thomas DL5TKL.