Commit Graph

19 Commits

Author SHA1 Message Date
Wolfsblvt 860a2f6929 Fix naming 2024-06-11 02:25:01 +02:00
Wolfsblvt bb09f5a292 Prep to fix AutoComplete display in popups 2024-06-11 02:22:46 +02:00
Wolfsblvt d14af1592e Refactor naming/structure of popup CSS classes
- Refactor naming/structure of popup CSS classes
- Prepare Popup utility of opening/showing dialogs
2024-06-09 22:02:51 +02:00
Wolfsblvt 5cc4242c6f Make ST-style buttons keyboard selectable
- Make ST-style buttons keyboard selectable
- Allow custom classes/selectors to be set as buttons too, with the same functionality (CSS selector-based)
- Observer to automatically add functionality to any button added to the DOM
- Allow buttons to not be selectable via 'disabled' or 'not_focusable'
2024-06-03 02:52:54 +02:00
Wolfsblvt 89d1bc8341 Drag&Drop handler utility and animation 2024-06-02 05:54:41 +02:00
Wolfsblvt 6ca71c3e2c Popup styling changes for smaller content & small fixes 2024-06-02 00:09:25 +02:00
Wolfsblvt c939c544e2 Rename popup css classes 2024-05-31 21:59:26 +02:00
Wolfsblvt 1c6671df31 popup fix scrollbar style, align toastr 2024-05-30 21:03:52 +02:00
Wolfsblvt 6c3118549f Make generic popups be modal dialogs
- Switch generic popups to actual <dialog> elements
- Move toastr settings from html to JS
- Add style variable for animation duration (to re-use in CSS)
- Remember focus of popup on stacking pop-up close to switch back to the element you started out in
- Fix keybinds of popups to only act on actual result-triggering controls
- Fix toastr appearing behind popups by dynamically moving the container inside the currently open dialog
- Improve autofocus on popup open
- Make cleaner and prettier popup animations, and tie them to the animation speed
-
2024-05-30 05:11:23 +02:00
Wolfsblvt 4f2543f7ae Fix popup custom buttons 2024-05-25 01:02:13 +02:00
Wolfsblvt d9582062d2 Expand popup functionality
- Add "custom buttons" functionality, each with their own popup result
- Handle 'Enter' by defining a default action
- Using default action to style the default button to make the default action visible
- Allow override of ok/cancel button on any popup type to display those
- Allow multiple popups to overlay each other
- Small styling changes for bottom spacing on non-input popups
2024-05-25 00:44:09 +02:00
Cohee 549b2d52a4 Remove unnecessary DOM query 2024-05-20 21:58:45 +03:00
Yokayo 6023eac4bb Onboarding lang switch; more localizable strings; enhance ru-ru translation 2024-05-13 19:20:28 +07:00
LenAnderson 0ab5ddf763 use elementFromPoint instead of popup stack 2024-04-18 14:03:16 -04:00
LenAnderson 9fee731cac only close last popup with escape 2024-04-18 09:23:52 -04:00
Cohee de8339f77b Fix ESLint 2024-04-13 15:24:49 +03:00
LenAnderson 278ec029f5 add missing cancelButton setting to callGenericPopup 2024-04-12 20:50:14 -04:00
LenAnderson 91558ad9ea add enter to submit on input type 2024-04-12 20:49:55 -04:00
LenAnderson 0e2a82ce00 add generic popups with their own elements 2024-04-08 18:42:33 -04:00