anki/ts/image-occlusion/notes-toolbar/MoreTools.svelte
Mani 47a9db8221
fix image height issues in iOS safari (#2480)
* use i18n message when not showing image

* fix height for iOS

* some ui styling

* fix polygon draw in panzoom

* more ui styling and fixes
2023-04-26 16:01:04 +10:00

30 lines
759 B
Svelte

<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="ts">
import IconButton from "../../components/IconButton.svelte";
import { mdiCodeTags } from "../icons";
import { changePreviewHTMLView } from "./lib";
export let iconSize;
const moreTools = [
{
name: "code",
title: "Code",
icon: mdiCodeTags,
action: changePreviewHTMLView,
},
];
</script>
{#each moreTools as tool}
<IconButton
class="note-tool-icon-button right-border-radius"
{iconSize}
on:click={() => tool.action()}
tooltip={tool.title}>{@html tool.icon}</IconButton
>
{/each}