From 810b75c6d791f1c66b6a7decb1006f99c502664c Mon Sep 17 00:00:00 2001 From: blankie Date: Sat, 2 Dec 2023 09:17:28 +1100 Subject: [PATCH] Fix CSS issues on Firefox for Android 68 --- routes/css.cpp | 10 ++++++---- servehelper.cpp | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/routes/css.cpp b/routes/css.cpp index 0fb7013..7832b80 100644 --- a/routes/css.cpp +++ b/routes/css.cpp @@ -58,6 +58,8 @@ pre { img { object-fit: cover; + /* about page for lgbtqia.space */ + max-width: 100%; } a { @@ -80,7 +82,7 @@ svg { } /* POST */ -.main_post :is(.post-contents, details) { +.main_post .post-contents, .main_post details { font-size: 1.1rem; } .post { @@ -105,7 +107,7 @@ svg { margin-bottom: auto; margin-left: 0.5em; } -.post-header a:has(time) { +.post-time_header { margin-left: auto; } @@ -126,7 +128,7 @@ svg { margin: initial; } } -.post-attachments :is(img, video, audio) { +.post-attachments img, .post-attachments video, .post-attachments audio { width: 320px; height: 180px; } @@ -262,7 +264,7 @@ svg { width: 100%; height: 15em; } -:is(.about_page-about, .about_page-rules) summary { +.about_page-about summary, .about_page-rules summary { font-size: 130%; font-weight: bold; } diff --git a/servehelper.cpp b/servehelper.cpp index 92c99df..df7569a 100644 --- a/servehelper.cpp +++ b/servehelper.cpp @@ -411,7 +411,7 @@ static Element serialize_post(const httplib::Request& req, const std::string& se Element("br"), "@", post.account.acct(), }), }), - Element("a", {{"href", get_origin(req) + '/' + server + "/@" + post.account.acct(false) + '/' + post.id + "#m"}, {"title", time_title}}, { + Element("a", {{"class", "post-time_header"}, {"href", get_origin(req) + '/' + server + "/@" + post.account.acct(false) + '/' + post.id + "#m"}, {"title", time_title}}, { Element("time", {{"datetime", to_rfc3339(post.created_at)}}, {relative_time(post.created_at, current_time()), time_badge}), }), }),