1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/web_src/css
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
..
chroma Various code view improvements (#30014) 2024-03-24 12:14:03 +00:00
codemirror Remove EasyMDE focus outline on text (#25328) 2023-06-18 04:10:07 +00:00
editor Clean up diff header css and reduce global textarea min-height (#29232) 2024-02-18 14:51:21 +00:00
features Fix and rewrite contrast color calculation, fix project-related bugs (#30326) 2024-04-09 09:45:29 +00:00
markup Markup color and font size fixes (#30282) (#30310) 2024-04-07 05:48:41 +08:00
modules Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
repo Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
shared Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
standalone Add toasts to UI (#25449) 2023-06-27 02:45:24 +00:00
themes Minor color tweaks (#30397) (#30398) 2024-04-11 10:14:28 +08:00
actions.css Action view mobile improvements and fixes (#30309) (#30320) 2024-04-07 15:22:47 +00:00
admin.css User details page (#26713) 2023-08-31 11:21:18 +02:00
base.css Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
dashboard.css Remove fomantic label module (#30081) 2024-03-27 09:58:02 +00:00
explore.css Introduce .secondary-nav and handle .page-content spacing universally (#29982) 2024-03-22 23:54:09 +00:00
font_i18n.css Fix @font-face overrides (#24855) 2023-05-24 01:48:51 +00:00
form.css Fix checkboxes on mobile view, remove some dead css (#30308) (#30319) 2024-04-07 21:10:40 +08:00
helpers.css Migrate font-family to tailwind (#30118) 2024-03-28 08:31:07 +00:00
home.css avoid hard-coding height in language dropdown menu (#25986) 2023-07-19 23:30:57 +02:00
index.css Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
install.css Make "install page" respect environment config (#25648) 2023-07-09 22:43:37 +00:00
org.css Remove fomantic checkbox module (#30162) (#30168) 2024-03-29 17:44:22 +00:00
repo.css Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
review.css Fix: The interface is broken when modifying code comments under mobile devices (#30125) 2024-03-27 08:13:12 +00:00
user.css Introduce .secondary-nav and handle .page-content spacing universally (#29982) 2024-03-22 23:54:09 +00:00