1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 14:44:41 +00:00
gitea/templates/repo/issue
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
..
fields Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
labels Prevent flash of dropdown menu on labels list (#30215) (#30216) 2024-04-01 06:16:55 +00:00
milestone Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
view_content Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
branch_selector_field.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
card.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
choose.tmpl Fix spacing in issue navbar (#30238) (#30242) 2024-04-02 12:15:50 +00:00
comment_tab.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
filter_actions.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
filter_list.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
filters.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
label_precolors.tmpl Replace 10 more gt- classes with tw- (#29945) 2024-03-22 13:45:10 +00:00
labels.tmpl Fix spacing in issue navbar (#30238) (#30242) 2024-04-02 12:15:50 +00:00
list.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
milestone_issues.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
milestone_new.tmpl Fix spacing in issue navbar (#30238) (#30242) 2024-04-02 12:15:50 +00:00
milestones.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
navbar.tmpl Fix menu buttons in issues and release (#30056) 2024-03-25 13:52:54 +00:00
new_form.tmpl When the title in the issue has a value, set the text cursor at the end of the text. (#30090) 2024-03-27 15:20:10 +08:00
new.tmpl Fix incorrect redirection when creating a PR fails (#29537) 2024-03-02 12:45:14 +00:00
openclose.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
search.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
view_content.tmpl Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
view_title.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
view.tmpl Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 2023-05-03 17:58:59 -04:00