anki/qt/aqt/data/web/js
Aristotelis 91d563278f
Fix toolbar add-on breakages and introduce toolbar tray layout & API (#2301)
* Layout toolbar using CSS grid, introducing left and right trays

The trays provide a space for add-ons to introduce their own widgets to the toolbar without interfering with each other.

* Align tray items to the top

* Move absolutely positioned add-on items to right toolbar tray

Workaround that fixes breakages in add-ons like AMBOSS, Study Timer, and potentially others that currently still inject absolutely positioned elements into the toolbar using `top_toolbar_did_init_links`.

* Account for add-ons that add manual padding (e.g. Study Timer)

* Add docstrings and slightly refactor

* Tweak item alignment

* Introduce hooks for extending left and right toolbar trays

* Assign CSS classes to all tray items

* Add disclaimer on transitional nature of new hooks
2023-01-10 08:48:50 +10:00
..
vendor Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
deckbrowser.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
pycmd.d.ts enable eslint on aqt/data/web/js 2021-10-18 19:39:45 +10:00
reviewer-bottom.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
toolbar.ts Fix toolbar add-on breakages and introduce toolbar tray layout & API (#2301) 2023-01-10 08:48:50 +10:00
tsconfig.json Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
webview.ts Fix Esc not closing TS pages (#2240) 2022-12-06 20:03:34 +10:00