summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLibravatar Mia Heidenstedt <i5heu@i5h.eu>2022-11-02 09:04:23 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-02 09:04:23 +0100
commit29a71cf828e90f89385d9b6bd2e68a1490a187c9 (patch)
tree0a2adcec3e824e373950580f154dff3c2a24ecfc /web
parent[bugfix] create admin_account_actions table in tx (#940) (diff)
downloadgotosocial-29a71cf828e90f89385d9b6bd2e68a1490a187c9.tar.xz
[frontend] Fix #923 and markdown css (#925)
* fix url in CONTRIBUTING.md * prevent img from overflow and allow to center the img * fix #923 and guide browser to select entire username
Diffstat (limited to 'web')
-rw-r--r--web/source/css/profile.css1
-rw-r--r--web/source/css/status.css8
-rw-r--r--web/template/profile.tmpl2
3 files changed, 10 insertions, 1 deletions
diff --git a/web/source/css/profile.css b/web/source/css/profile.css
index e4763f303..1f76d5d03 100644
--- a/web/source/css/profile.css
+++ b/web/source/css/profile.css
@@ -126,6 +126,7 @@ main {
word-break: break-all;
text-overflow: ellipsis;
overflow: hidden;
+ user-select: all;
}
}
diff --git a/web/source/css/status.css b/web/source/css/status.css
index ff5cc2836..5b9900472 100644
--- a/web/source/css/status.css
+++ b/web/source/css/status.css
@@ -178,6 +178,14 @@ main {
-webkit-overflow-scrolling: touch;
}
}
+
+ img {
+ max-width: 100%;
+ margin: 5px auto;
+ }
+ img[alt~="!center"] {
+ display: block;
+ }
}
.emoji {
diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl
index 98197f7cf..136496cdb 100644
--- a/web/template/profile.tmpl
+++ b/web/template/profile.tmpl
@@ -13,7 +13,7 @@
<div id="profile-basic-filler2"></div>
<a href="{{.account.Avatar}}" class="avatar"><img src="{{.account.Avatar}}" alt="{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}'s avatar"></a>
<div class="displayname">{{if .account.DisplayName}}{{emojify .account.Emojis (escape .account.DisplayName)}}{{else}}{{.account.Username}}{{end}}</div>
- <div class="username"><span>@{{.account.Username}}</span><span>@{{.instance.AccountDomain}}</span></div>
+ <div class="username">@{{.account.Username}}@{{.instance.AccountDomain}}</div>
</div>
<div class="detailed">
<div class="bio">