You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fine tune more downdrop settings, use SVG for labels, improve Repo Topic Edit form (go-gitea#23626)
Although it seems that some different purposes are mixed in this PR,
however, they are all related, and can be tested together, so I put them
together to save everyone's time.
Diff: `+79 −84`, everything becomes much better.
### Improve the dropdown settings.
Move all fomantic-init related code into our `fomantic.js`
Fine-tune some dropdown global settings, see the comments.
Also help to fix the first problem in go-gitea#23625 , cc: @yp05327
The "language" menu has been simplified, and it works with small-height
window better.
### Use SVG instead of `<i class="delete icon">`
It's also done by `$.fn.dropdown.settings.templates.label` , cc:
@silverwind
### Remove incorrect `tabable` CSS class
It doesn't have CSS styles, and it was only in Vue. So it's totally
unnecessary, remove it by the way.
### Improve the Repo Topic Edit form
* Simplify the code
* Add a "Cancel" button
* Align elements
Before:
<details>

</details>
After:

// Run time-critical code as soon as possible. This is safe to do because this
96
95
// script appears at the end of <body> and rendered HTML is accessible at that point.
96
+
// TODO: replace them with CustomElements
97
97
initFormattingReplacements();
98
-
99
-
// Silence fomantic's error logging when tabs are used without a target content element
100
-
$.fn.tab.settings.silent=true;
101
-
// Disable the behavior of fomantic to toggle the checkbox when you press enter on a checkbox element.
102
-
$.fn.checkbox.settings.enableEnterKey=false;
103
-
// Use the patches to improve accessibility, these patches are designed to be as independent as possible, make it easy to modify or remove in the future.
// Use the patches to improve accessibility, these patches are designed to be as independent as possible, make it easy to modify or remove in the future.
0 commit comments