]> source.dussan.org Git - gitea.git/commit
Improve Image Diff UI (#26696)
authorwxiaoguang <wxiaoguang@gmail.com>
Thu, 24 Aug 2023 12:13:23 +0000 (20:13 +0800)
committerGitHub <noreply@github.com>
Thu, 24 Aug 2023 12:13:23 +0000 (12:13 +0000)
commit09faf43ef822ca4dbdfb2a2714ad43a782acf6e8
tree3ed8574c4d0437d76fee67c2ac16cc1e011e694f
parent4de224469774a502f560cbf62060a03016c97167
Improve Image Diff UI (#26696)

1. Use `is-loading` instead of `ui loader`
2. Introduce class name `image-diff-tabs`, instead of searching `gt-hidden`, which is fragile
3. Align the UI elements, see the screenshots.
templates/repo/diff/image_diff.tmpl
web_src/css/features/imagediff.css
web_src/js/features/imagediff.js