From ed7b461c812f6da7bef7804dc7ea04bb605d3870 Mon Sep 17 00:00:00 2001 From: emeric Date: Wed, 26 Sep 2018 13:42:42 +0200 Subject: [PATCH] Prevent the user to zoom on mobile devices --- src/ui/LmsApplication.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/LmsApplication.cpp b/src/ui/LmsApplication.cpp index 9d49104d..2116765e 100644 --- a/src/ui/LmsApplication.cpp +++ b/src/ui/LmsApplication.cpp @@ -85,6 +85,8 @@ LmsApplication::LmsApplication(const Wt::WEnvironment& env, Wt::Dbo::SqlConnecti bootstrapTheme->setResponsive(true); setTheme(std::move(bootstrapTheme)); + addMetaHeader(Wt::MetaHeaderType::Meta, "viewport", "width=device-width, user-scalable=no"); + useStyleSheet("css/lms.css"); useStyleSheet("resources/font-awesome/css/font-awesome.min.css");