Anki/qt
Matthias Metelka f72570c604
Make tags editor resizable using Henrik's components (#2046)
* Make tags editor resizable using Henrik's components

All credit for the components goes to Henrik. I just tweaked the design a bit and implemented them in NoteEditor.

Co-Authored-By: Henrik Giesel <hengiesel@gmail.com>

* Remove PaneContent padding

Co-Authored-By: Henrik Giesel <hengiesel@gmail.com>

* Add responsive box-shadows on scroll/resize

only shown when content overflows in the respective direction.

* Remove comment

* Fix overflow calculations and shadow mix-up

This happened when I switched from using scrolledToX to overflowX booleans.

* Simplify overflow calculations

* Make drag handles 0 height/width

The remaining height requirement comes from a margin set on NoteEditor.

* Run eslint on components

* Split editor into three panes: Toolbar, Fields, Tags

* Remove upper split for now

to unblock 2.1.55 beta

* Move panes.scss to sass folder

* Use single type for resizable panes

* Implement collapsed state toggled with click on resizer

* Add button to uncollapse tags pane and focus input

* Add indicator for # of tags

* Use dbclick to prevent interference with resize state

* Add utility functions for expand/collapse

* Meddle around with types and formatting

* Fix collapsed state being forgotten on second browser open (dae)

* Fix typecheck (dae)

Our tooling generates .d.ts files from the Svelte files, but it doesn't
expect variables to be exported. By changing them into functions, they
get included in .bazel/bin/ts/components/Pane.svelte.d.ts

* Remove an unnecessary bridgeCommand (dae)

* Fix the bottom of tags getting cut off (dae)

Not sure why offsetHeight is inaccurate in this case.

* Add missing header (dae)

Co-authored-by: Henrik Giesel <hengiesel@gmail.com>
2022-09-28 14:02:32 +10:00
..
aqt Make tags editor resizable using Henrik's components (#2046) 2022-09-28 14:02:32 +10:00
bundle Ensure files are world readable in macOS dist 2022-07-12 13:04:48 +10:00
icons move remaining Filter button items into sidebar 2021-02-05 18:58:22 +10:00
mac implement a basic native macOS audio recorder 2021-12-07 18:48:24 +10:00
tests Update Python deps 2022-09-24 09:46:43 +10:00
tools Introduce new color palette using Sass maps (#2016) 2022-09-16 14:11:18 +10:00
.isort.cfg initial Bazel conversion 2020-11-01 14:26:58 +10:00
.pylintrc Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
bazelfixes.py updated package scripts 2021-10-28 18:46:45 +10:00
BUILD.bazel Introduce new color palette using Sass maps (#2016) 2022-09-16 14:11:18 +10:00
dmypy.py Invoke mypy from within runfiles 2022-03-10 12:02:04 +10:00
mypy.ini Access certificates periodically 2022-08-19 10:00:38 +10:00
README.md minor doc updates 2020-12-11 22:37:12 +10:00
runanki.py get PyQt working directly with ./run on macOS 2021-10-16 18:07:29 +10:00

Python's Qt GUI is in aqt/