1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 22:24:24 +00:00
gitea/web_src/css/repo
Giteabot 0352b99221
Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473)
Backport #30453 by @silverwind

Enable `no-sizzle` lint rule, there was only one use in
`initCompReactionSelector` which I have rewritten as follows:

- Remove all jQuery except the necessary fomantic dropdown init
- Remove the recursion, instead bind event listeners to common parent
container nodes

Did various tests, works with our without attachments, in diff view and
in diff comments inside comment list.

Additionally the style of reactions now matches between code comments
and issue comments:

<img width="275" alt="Screenshot 2024-04-13 at 14 58 10"
src="https://github.com/go-gitea/gitea/assets/115237/9d08f188-8661-4dd9-bff4-cad6d6d09cab">

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-04-14 11:58:48 +00:00
..
header.css Introduce .secondary-nav and handle .page-content spacing universally (#29982) 2024-03-22 23:54:09 +00:00
issue-card.css Drag-and-drop improvements for projects and issue pins (#29875) 2024-03-28 00:20:38 +01:00
issue-label.css Hide archived labels by default from the suggestions when assigning labels for an issue (#27451) 2023-10-17 16:10:45 +02:00
issue-list.css Fix and rewrite contrast color calculation, fix project-related bugs (#30326) 2024-04-09 09:45:29 +00:00
linebutton.css Various code view improvements (#30014) 2024-03-24 12:14:03 +00:00
list-header.css Fix UI on mobile view (#25315) 2023-06-18 10:31:42 +00:00
reactions.css Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
release-tag.css Remove a gt-float-right and some unnecessary helpers (#27110) 2023-09-18 12:25:36 +08:00
wiki.css Add border radius for wiki pages (#29937) 2024-03-22 13:17:39 +00:00