Fix CSS issues on Firefox for Android 68

This commit is contained in:
blankie 2023-12-02 09:17:28 +11:00
parent 2d28001412
commit 810b75c6d7
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
2 changed files with 7 additions and 5 deletions

View File

@ -58,6 +58,8 @@ pre {
img { img {
object-fit: cover; object-fit: cover;
/* about page for lgbtqia.space */
max-width: 100%;
} }
a { a {
@ -80,7 +82,7 @@ svg {
} }
/* POST */ /* POST */
.main_post :is(.post-contents, details) { .main_post .post-contents, .main_post details {
font-size: 1.1rem; font-size: 1.1rem;
} }
.post { .post {
@ -105,7 +107,7 @@ svg {
margin-bottom: auto; margin-bottom: auto;
margin-left: 0.5em; margin-left: 0.5em;
} }
.post-header a:has(time) { .post-time_header {
margin-left: auto; margin-left: auto;
} }
@ -126,7 +128,7 @@ svg {
margin: initial; margin: initial;
} }
} }
.post-attachments :is(img, video, audio) { .post-attachments img, .post-attachments video, .post-attachments audio {
width: 320px; width: 320px;
height: 180px; height: 180px;
} }
@ -262,7 +264,7 @@ svg {
width: 100%; width: 100%;
height: 15em; height: 15em;
} }
:is(.about_page-about, .about_page-rules) summary { .about_page-about summary, .about_page-rules summary {
font-size: 130%; font-size: 130%;
font-weight: bold; font-weight: bold;
} }

View File

@ -411,7 +411,7 @@ static Element serialize_post(const httplib::Request& req, const std::string& se
Element("br"), "@", post.account.acct(), 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}), Element("time", {{"datetime", to_rfc3339(post.created_at)}}, {relative_time(post.created_at, current_time()), time_badge}),
}), }),
}), }),