diff options
author | silverwind <me@silverwind.io> | 2022-12-02 10:42:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 11:42:34 +0200 |
commit | d64063277d77a0eea5fa13d257a25ec554367c71 (patch) | |
tree | 7a08d5cc5e1f3e96fe4745e0b6b8f881b7ae4c91 /web_src/less/_repository.less | |
parent | df676a47d05b20f7bfe4fdae350f50af15b52905 (diff) | |
download | gitea-d64063277d77a0eea5fa13d257a25ec554367c71.tar.gz gitea-d64063277d77a0eea5fa13d257a25ec554367c71.zip |
Multiple improvements for comment edit diff (#21990)
- Use explicit avatar size so when JS copies the HTML, the size gets
copied with it
- Replace icon font use with SVG
- Improve styling and diff rendering
- Sort lists in `svg.js`
Fixes: https://github.com/go-gitea/gitea/issues/21924
<img width="933" alt="Screenshot 2022-11-30 at 17 52 17"
src="https://user-images.githubusercontent.com/115237/204859608-f322a8f8-7b91-45e4-87c0-82694e574115.png">
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src/less/_repository.less')
-rw-r--r-- | web_src/less/_repository.less | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index d0c1e7cce5..3eb0178d37 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -2963,6 +2963,24 @@ tbody.commit-list { text-align: left; } +.comment-diff-data { + background: var(--color-code-bg); + max-height: calc(100vh - 10.5rem); + overflow-y: auto; +} + +.comment-diff-data pre { + line-height: 18px; + white-space: pre-wrap; + word-break: break-all; + overflow-wrap: break-word; +} + +.content-history-detail-dialog .header .avatar { + position: relative; + top: -2px; +} + #topic_edit { margin-top: 5px; } |