Fix extra gap between user display name and View on original instance

https://fedi.nano.lgbt/@itzzen@mstdn.plus.st
This commit is contained in:
blankie 2023-12-09 13:36:40 +11:00
parent b9571f313e
commit bda0bff294
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ svg {
width: 7.5em;
height: 7.5em;
}
.user_page-main_header span {
.user_page-main_header_text {
margin-top: auto;
margin-bottom: auto;
margin-left: 0.5em;

View File

@ -111,7 +111,7 @@ static inline Element user_header(const httplib::Request& req, const std::string
Element("a", {{"href", account.avatar}}, {
Element("img", {{"class", "user_page-profile"}, {"alt", "User profile picture"}, {"loading", "lazy"}, {"src", account.avatar}}, {}),
}),
Element("span", {
Element("span", {{"class", "user_page-main_header_text"}}, {
// left-to-right override--thank https://anarres.family/@alice@mk.nyaa.place
Element("b", {preprocess_html(req, account.emojis, account.display_name)}), "\u202d", account.bot ? " (bot)" : "", " (@", account.acct(), ")", view_on_original,
Element("br"),