0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 07:43:18 -05:00
forgejo/web_src/js/features
silverwind a579a0f318
[Port] gitea#30014: Various code view improvements
1. Restore missing styles for message close icon
2. Move `code-line-button` so that it does not go off-screen on small
viewports
3. Make `code-line-button` look and behave like other buttons
4. Make `code-line-button` work in blame
5. Make the active selection span the whole line, not just the code part
6. Tweak colors, make dark theme code bg darker, make line numbers same
color in diff and file view.
7. Move code background to parent, fixing border radius and other
problems
8. Enable code wrap in blame
9. Improve blame responsiveness
10. Remove `--color-code-sidebar-bg` in blame, now it uses same
background as code
11. Rename `--color-active-line` to `--color-highlight-bg`
12. Add `--color-highlight-bg`
13. Fix button group borders on hover and border-right on last button.

<img width="1343" alt="Screenshot 2024-03-23 at 22 34 13"
src="https://github.com/go-gitea/gitea/assets/115237/fcbb919f-5dc3-43f0-97f6-870d6f412554">
<img width="1334" alt="Screenshot 2024-03-23 at 22 34 26"
src="https://github.com/go-gitea/gitea/assets/115237/ca44c3b7-4328-4645-ba49-b0dc6a5ac06d">

<img width="1338" alt="Screenshot 2024-03-23 at 22 34 57"
src="https://github.com/go-gitea/gitea/assets/115237/00eb0b5a-1ec7-4669-a94a-4602b9d1c1ac">
<img width="1337" alt="Screenshot 2024-03-23 at 22 34 42"
src="https://github.com/go-gitea/gitea/assets/115237/752edc4a-064f-413c-9dff-c086187fcd85">

Fixes: https://github.com/go-gitea/gitea/issues/18074

---

Conflict resolution: Trivial.
Ref: https://codeberg.org/forgejo/forgejo/issues/2776
(cherry picked from commit db01bf6cc88a8a7b5132b9306b3af1649566b10f)
2024-03-28 16:43:14 +01:00
..
admin Fix various loading states, remove .loading class (#29920) 2024-03-26 19:04:26 +01:00
comp Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
captcha.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
citation.js Remove jQuery from the citation modal (except fomantic) (#30008) 2024-03-26 19:04:27 +01:00
clipboard.js Fix Citation modal responsiveness and clipboard copy (#29799) 2024-03-20 08:46:29 +01:00
code-frequency.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
codeeditor.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
colorpicker.js Forbid jQuery .css and refactor all usage (#29852) 2024-03-26 19:04:25 +01:00
common-global.js Remove jQuery .attr from the common global functions (#30023) 2024-03-26 19:04:28 +01:00
common-issue-list.js Remove jQuery from the issue "go to" button (#30028) 2024-03-26 19:04:27 +01:00
common-issue-list.test.js
common-organization.js
contextpopup.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
contributors.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
copycontent.js
dropzone.js
emoji.js
eventsource.sharedworker.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
file-fold.js
heatmap.js Fix heatmap localization 2024-03-20 08:20:08 +01:00
imagediff.js Remove remaining jQuery .css code (#30015) 2024-03-26 19:04:28 +01:00
install.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
notification.js Forbid HTML injection using jQuery (#29843) 2024-03-20 08:46:30 +01:00
org-team.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
pull-view-file.js Fix counter display number incorrectly displayed on the page (#29448) 2024-03-06 12:10:44 +08:00
recent-commits.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
repo-branch.js
repo-code.js [Port] gitea#30014: Various code view improvements 2024-03-28 16:43:14 +01:00
repo-code.test.js
repo-commit.js Fix elipsis button not working if the last commit loading is deferred (#29544) 2024-03-06 12:10:46 +08:00
repo-common.js Fix various loading states, remove .loading class (#29920) 2024-03-26 19:04:26 +01:00
repo-diff-commit.js Migrate border and margin classes to Tailwind (#29828) 2024-03-26 19:04:25 +01:00
repo-diff-commitselect.js
repo-diff-filetree.js
repo-diff.js Remove jQuery .attr from the diff page (#30021) 2024-03-26 19:04:27 +01:00
repo-editor.js Remove jQuery .attr from the quick pull request button text (#29916) 2024-03-26 19:04:25 +01:00
repo-findfile.js Remove jQuery from the "find file" page (#29456) 2024-03-06 12:10:44 +08:00
repo-findfile.test.js
repo-graph.js Remove jQuery .attr from the commit graph (#30006) 2024-03-26 19:04:27 +01:00
repo-home.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
repo-issue-content.js Fix incorrect tailwind migration (#30007) 2024-03-26 19:04:27 +01:00
repo-issue-list.js Replace 10 more gt- classes with tw- (#29945) 2024-03-26 19:04:27 +01:00
repo-issue-pr-form.js
repo-issue-pr-status.js
repo-issue.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
repo-legacy.js Fix: Abnormal strings appear when comments are saved after editing (#29991) 2024-03-26 19:04:27 +01:00
repo-migrate.js Remove jQuery from repo migrate page (#29219) 2024-02-19 22:58:32 +01:00
repo-migration.js Remove jQuery from the repo migration form (#29229) 2024-02-26 21:42:14 +01:00
repo-projects.js Remove jQuery .attr from the project page (#30004) 2024-03-26 19:04:27 +01:00
repo-release.js [FRONTEND] fix javascript linting errors 2024-02-25 23:43:58 +01:00
repo-search.js Filter Repositories by type (#29231) 2024-03-06 12:10:46 +08:00
repo-settings.js Remove jQuery .attr from the repository settings (#30018) 2024-03-26 19:04:27 +01:00
repo-template.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
repo-unicode-escape.js Remove jQuery from the Unicode escape button (#29369) 2024-02-26 22:30:27 +01:00
repo-wiki.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
sshkey-helper.js
stopwatch.js Remove jQuery from the stopwatch (#29351) 2024-02-26 22:30:26 +01:00
tablesort.js
tribute.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
user-auth-webauthn.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
user-auth.js Replace more gt- with tw-, update frontend docs (#29595) 2024-03-11 23:36:58 +07:00
user-settings.js