anki/ts/editor/editor-toolbar
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
..
AddonButtons.svelte Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
BlockButtons.svelte Insert symbols overlay (#2051) 2022-09-10 18:46:59 +10:00
BoldButton.svelte Refactor how toolbar buttons get to surround within editor fields (#1931) 2022-08-15 13:34:16 +10:00
ColorPicker.svelte Fix insert media always insert at the start (on Windows) (#1684) 2022-02-25 10:59:06 +10:00
CommandIconButton.svelte Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
EditorToolbar.svelte Make tags editor resizable using Henrik's components (#2046) 2022-09-28 14:02:32 +10:00
HighlightColorButton.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
icons.ts Add option to shrink editor images by default (#2071) 2022-09-26 09:47:50 +10:00
index.ts Refactor how toolbar buttons get to surround within editor fields (#1931) 2022-08-15 13:34:16 +10:00
InlineButtons.svelte Move all buttons to our custom inline surrounding (#1682) 2022-02-22 22:17:22 +10:00
ItalicButton.svelte Refactor how toolbar buttons get to surround within editor fields (#1931) 2022-08-15 13:34:16 +10:00
LatexButton.svelte Fuzzy search in symbol insertion overlay (#2059) 2022-09-13 14:19:19 +10:00
NotetypeButtons.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
OptionsButton.svelte Simplify asReference 2022-09-26 10:04:08 +10:00
RemoveFormatButton.svelte Insert symbols overlay (#2051) 2022-09-10 18:46:59 +10:00
RichTextClozeButtons.svelte Implement cloze buttons in Mathjax editor (#1860) 2022-05-13 13:04:20 +10:00
SubscriptButton.svelte Refactor how toolbar buttons get to surround within editor fields (#1931) 2022-08-15 13:34:16 +10:00
SuperscriptButton.svelte Refactor how toolbar buttons get to surround within editor fields (#1931) 2022-08-15 13:34:16 +10:00
TemplateButtons.svelte Add extra button group for cloze commands (#1756) 2022-03-31 13:30:00 +10:00
TextColorButton.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
UnderlineButton.svelte Refactor how toolbar buttons get to surround within editor fields (#1931) 2022-08-15 13:34:16 +10:00
WithColorHelper.svelte Fix insert media always insert at the start (on Windows) (#1684) 2022-02-25 10:59:06 +10:00