diff options
author | silverwind <me@silverwind.io> | 2020-11-04 08:14:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 09:14:07 +0200 |
commit | 62719cdd2d7e62cd21f4bfcf8eb9ded37128159a (patch) | |
tree | 402d8c20f9e3f40eb2c6c695a45a3dd3497a2376 /templates/user | |
parent | 951a3337336d96e363776d874e5a844e0c768f3b (diff) | |
download | gitea-62719cdd2d7e62cd21f4bfcf8eb9ded37128159a.tar.gz gitea-62719cdd2d7e62cd21f4bfcf8eb9ded37128159a.zip |
Fix whitespace rendering in diff (#13415)
- Introduce new .code-inner class that sets the CSS attributes on
rendered code lines like view,blame and diff.
- Rename .wrap class to .word-break to reflect what it actually does
- Remove .raw which was only used on webhook page
- Set white-space: pre-wrap except on blame where it can break the
layout
Fixes: https://github.com/go-gitea/gitea/issues/13406
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/profile.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 9deadd921d..3a3192a828 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -13,11 +13,11 @@ <img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}" height="290" width="290"/> </span> {{end}} - <div class="content wrap"> + <div class="content word-break"> {{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}} <span class="username text center">{{.Owner.Name}}</span> </div> - <div class="extra content wrap"> + <div class="extra content word-break"> <ul class="text black"> {{if .Owner.Location}} <li>{{svg "octicon-location"}} {{.Owner.Location}}</li> |