Go to file
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
.buildkite Make build step optional in Linux docker containers 2022-03-09 18:20:13 +10:00
.github/ISSUE_TEMPLATE update bug report template 2021-11-12 12:20:02 +10:00
.vscode.dist Move VS Code settings to .vscode.dist and update docs (#2029) 2022-08-24 16:08:58 +10:00
cargo Add missing sim lines in build files 2022-09-25 12:55:55 +10:00
docs Document Protocol Buffers used in Anki (#2042) 2022-09-01 22:01:14 +10:00
ftl Add option to shrink editor images by default (#2071) 2022-09-26 09:47:50 +10:00
platforms use x86 binaries for clang format/protobuf on Mac 2021-10-16 18:07:39 +10:00
proto Enable state-dependent custom scheduling data (#2049) 2022-09-05 16:48:01 +10:00
pylib Update Rust deps 2022-09-24 13:22:46 +10:00
python Update Python deps 2022-09-24 09:46:43 +10:00
qt Make tags editor resizable using Henrik's components (#2046) 2022-09-28 14:02:32 +10:00
rslib Update Rust deps 2022-09-24 13:22:46 +10:00
sass Make tags editor resizable using Henrik's components (#2046) 2022-09-28 14:02:32 +10:00
tools Update Mac build to Qt 6.3 2022-04-20 21:33:31 +10:00
ts Make tags editor resizable using Henrik's components (#2046) 2022-09-28 14:02:32 +10:00
.bazelignore updates to the build process and binary bundles 2022-02-10 19:23:07 +10:00
.bazelrc Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
.bazelversion Bump bazel version 2022-04-20 21:53:59 +10:00
.gitattributes try again to improve GitHub's language stats 2021-01-20 13:20:45 +10:00
.gitignore Move VS Code settings to .vscode.dist and update docs (#2029) 2022-08-24 16:08:58 +10:00
.prettierignore Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
.prettierrc Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
.user.bazelrc move Bazel convenience symlinks outside of repo folder 2022-01-23 19:18:44 +10:00
BUILD.bazel updates to the build process and binary bundles 2022-02-10 19:23:07 +10:00
Cargo.lock Update Rust deps 2022-09-24 13:22:46 +10:00
Cargo.toml Add missing sim lines in build files 2022-09-25 12:55:55 +10:00
CONTRIBUTORS Fix Windows dark mode detection: OpenKey can fail (#2068) 2022-09-15 12:04:19 +10:00
defs.bzl Update to latest rules_rust and Rust 1.64 2022-09-24 11:12:58 +10:00
late_deps.bzl Update to latest rules_rust and Rust 1.64 2022-09-24 11:12:58 +10:00
LICENSE move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
package.json Fuzzy search in symbol insertion overlay (#2059) 2022-09-13 14:19:19 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
pyrightconfig.json updates to the build process and binary bundles 2022-02-10 19:23:07 +10:00
README.md fix build badge 2021-06-24 09:21:56 +10:00
repos.bzl Update translations 2022-09-28 11:47:59 +10:00
run get PyQt working directly with ./run on macOS 2021-10-16 18:07:29 +10:00
run.bat updates to the build process and binary bundles 2022-02-10 19:23:07 +10:00
SECURITY.md add SECURITY.md 2021-09-22 22:55:19 +10:00
WORKSPACE move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
yarn.lock Fuzzy search in symbol insertion overlay (#2059) 2022-09-13 14:19:19 +10:00

Anki

Build status

This repo contains the source code for the computer version of Anki.

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see https://betas.ankiweb.net/

For more information on building, please see Development.