mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Make StickyBar flex
This commit is contained in:
parent
8aa3f5f2fa
commit
2f5074bff6
4 changed files with 5 additions and 8 deletions
|
@ -10,6 +10,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
nav {
|
nav {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
|
@ -47,8 +47,5 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<StickyBar>
|
<StickyBar>
|
||||||
<NoteTypeButtons />
|
<NoteTypeButtons />
|
||||||
<FormatInlineButtons />
|
<FormatInlineButtons />
|
||||||
<FormatBlockButtons />
|
|
||||||
<ColorButtons />
|
|
||||||
<TemplateButtons />
|
|
||||||
</StickyBar>
|
</StickyBar>
|
||||||
</WithTheming>
|
</WithTheming>
|
||||||
|
|
|
@ -60,7 +60,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
</WithShortcut>
|
</WithShortcut>
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
|
|
||||||
<DropdownMenu id={matjaxMenuId}>
|
<DropdownMenu id={mathjaxMenuId}>
|
||||||
<WithShortcut shortcut="Control+KeyM, KeyM" let:createShortcut let:shortcutLabel>
|
<WithShortcut shortcut="Control+KeyM, KeyM" let:createShortcut let:shortcutLabel>
|
||||||
<DropdownItem on:click={() => wrap('\\(', '\\)')}>
|
<DropdownItem on:click={() => wrap('\\(', '\\)')}>
|
||||||
{tr.editingMathjaxInline}
|
{tr.editingMathjaxInline}
|
||||||
|
|
|
@ -36,7 +36,4 @@ export function initToolbar(i18n: Promise<void>): Promise<EditorToolbar> {
|
||||||
// @ts-expect-error insufficient typing of svelte modules
|
// @ts-expect-error insufficient typing of svelte modules
|
||||||
export { enableButtons, disableButtons } from "./EditorToolbar.svelte";
|
export { enableButtons, disableButtons } from "./EditorToolbar.svelte";
|
||||||
// @ts-expect-error insufficient typing of svelte modules
|
// @ts-expect-error insufficient typing of svelte modules
|
||||||
export {
|
export { updateActiveButtons, clearActiveButtons } from "components/CommandIconButton.svelte";
|
||||||
updateActiveButtons,
|
|
||||||
clearActiveButtons,
|
|
||||||
} from "components/CommandIconButton.svelte";
|
|
||||||
|
|
Loading…
Reference in a new issue