47a9db8221
* use i18n message when not showing image * fix height for iOS * some ui styling * fix polygon draw in panzoom * more ui styling and fixes
30 lines
759 B
Svelte
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}
|