From 558f58e4b203338964f5dd4aee0c1a664f156bee Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Tue, 4 Jan 2022 21:13:43 +0100 Subject: [PATCH] bug: optimize download btn for mobile --- app/static/css/main.css | 11 +++++++++++ app/templates/index.html | 12 ++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/app/static/css/main.css b/app/static/css/main.css index 333528c..dd76da6 100644 --- a/app/static/css/main.css +++ b/app/static/css/main.css @@ -256,6 +256,17 @@ h3.header { height: 32px; } +#download-btn-wrapper { + display: flex; + justify-content: center; + margin: 2em 0; +} + +#download-btn { + display: flex; + align-items: center; +} + @media (min-width: 280px) { .btn-text { display: inline; diff --git a/app/templates/index.html b/app/templates/index.html index a38bd46..4efcf31 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -243,20 +243,24 @@ - {% if web_version %} + {% if web_version %}

Open Source Machine Translation API

100% Self-Hosted. Offline Capable. Easy to Setup.

-
cloud_download Download -


+
- {% endif %} + {% endif %}