diff --git a/qt/aqt/browser/browser.py b/qt/aqt/browser/browser.py index 9d67630bf..d0c0a308a 100644 --- a/qt/aqt/browser/browser.py +++ b/qt/aqt/browser/browser.py @@ -68,7 +68,6 @@ from aqt.utils import ( saveGeom, saveSplitter, saveState, - shortcut, showInfo, showWarning, skip_if_selection_is_empty, @@ -383,7 +382,7 @@ class Browser(QMainWindow): editor._links["preview"] = lambda _editor: self.onTogglePreview() editor.web.eval( - f"$editorToolbar.then(({{ notetypeButtons }}) => notetypeButtons.appendButton({{ component: editorToolbar.PreviewButton }}, -1));" + "$editorToolbar.then(({{ notetypeButtons }}) => notetypeButtons.appendButton({{ component: editorToolbar.PreviewButton }}, -1));" ) gui_hooks.editor_did_init.append(add_preview_button) diff --git a/ts/components/ButtonDropdown.svelte b/ts/components/ButtonDropdown.svelte index 7f8246e5c..c4512842f 100644 --- a/ts/components/ButtonDropdown.svelte +++ b/ts/components/ButtonDropdown.svelte @@ -6,22 +6,30 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import { setContext } from "svelte"; import { dropdownKey } from "./contextKeys"; - import ButtonGroup from "./ButtonGroup.svelte"; + import WithTheming from "./WithTheming.svelte"; + import ButtonToolbar from "./ButtonToolbar.svelte"; export let id: string | undefined; let className = ""; export { className as class }; - export let api = {}; + export let api: Record | undefined = undefined; setContext(dropdownKey, null); - - - - + + + + + diff --git a/ts/editor/BUILD.bazel b/ts/editor/BUILD.bazel index af4796ddf..f25d8017b 100644 --- a/ts/editor/BUILD.bazel +++ b/ts/editor/BUILD.bazel @@ -74,7 +74,7 @@ ts_library( "//ts/html-filter", "//ts:image_module_support", "@npm//svelte", - ], + ] + svelte_names, ) copy_bootstrap_icons( @@ -173,7 +173,7 @@ svelte_check( ]) + [ "//ts/sass:button_mixins_lib", "//ts/sass/bootstrap", - "@npm//@types/bootstrap", "//ts/components:svelte_components", + "@npm//@types/bootstrap", ], ) diff --git a/ts/editor/EditorToolbar.svelte b/ts/editor/EditorToolbar.svelte index d52bd55a5..fe21af4cf 100644 --- a/ts/editor/EditorToolbar.svelte +++ b/ts/editor/EditorToolbar.svelte @@ -4,19 +4,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -->