From f1d727b87c6351c28a9784e55c7f08d6f72d83b3 Mon Sep 17 00:00:00 2001 From: blankie Date: Thu, 6 Apr 2023 22:24:45 +0700 Subject: [PATCH] Add meta tag to make pages look better on browsers --- servehelper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servehelper.cpp b/servehelper.cpp index c16f1d1..dad3698 100644 --- a/servehelper.cpp +++ b/servehelper.cpp @@ -14,7 +14,8 @@ void serve(const httplib::Request& req, httplib::Response& res, const Config& co Element("head", { Element("meta", {{"charset", "utf-8"}}, {}), Element("title", {std::move(title)}), - Element("link", {{"rel", "stylesheet"}, {"href", std::move(css_url)}}, {}) + Element("link", {{"rel", "stylesheet"}, {"href", std::move(css_url)}}, {}), + Element("meta", {{"name", "viewport"}, {"content", "width=device-width,initial-scale=1"}}, {}) }), std::move(element) });