mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 23:27:12 -05:00
Remove the separate chevron in all/one selector
This commit is contained in:
parent
d441680984
commit
170ab60a52
1 changed files with 7 additions and 18 deletions
|
|
@ -9,13 +9,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
import Popover from "components/Popover.svelte";
|
import Popover from "components/Popover.svelte";
|
||||||
import WithFloating from "components/WithFloating.svelte";
|
import WithFloating from "components/WithFloating.svelte";
|
||||||
|
|
||||||
import {
|
import { mdiEye, mdiFormatAlignCenter, mdiSquare, mdiViewDashboard } from "./icons";
|
||||||
mdiChevronDown,
|
|
||||||
mdiEye,
|
|
||||||
mdiFormatAlignCenter,
|
|
||||||
mdiSquare,
|
|
||||||
mdiViewDashboard,
|
|
||||||
} from "./icons";
|
|
||||||
import { hideAllGuessOne } from "./store";
|
import { hideAllGuessOne } from "./store";
|
||||||
import { drawEllipse, drawPolygon, drawRectangle } from "./tools/index";
|
import { drawEllipse, drawPolygon, drawRectangle } from "./tools/index";
|
||||||
import { makeMaskTransparent } from "./tools/lib";
|
import { makeMaskTransparent } from "./tools/lib";
|
||||||
|
|
@ -104,16 +98,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
<div class="top-tool-bar-container">
|
<div class="top-tool-bar-container">
|
||||||
<div class="undo-redo-button" on:click={() => (showFloating = !showFloating)}>
|
<div class="undo-redo-button" on:click={() => (showFloating = !showFloating)}>
|
||||||
{#if $hideAllGuessOne}
|
|
||||||
<IconButton class="top-tool-icon-button left-border-radius" {iconSize}>
|
|
||||||
{@html mdiViewDashboard}
|
|
||||||
</IconButton>
|
|
||||||
{:else}
|
|
||||||
<IconButton class="top-tool-icon-button left-border-radius" {iconSize}>
|
|
||||||
{@html mdiSquare}
|
|
||||||
</IconButton>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<WithFloating
|
<WithFloating
|
||||||
show={showFloating}
|
show={showFloating}
|
||||||
closeOnInsideClick
|
closeOnInsideClick
|
||||||
|
|
@ -124,8 +108,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<IconButton
|
<IconButton
|
||||||
class="top-tool-icon-button right-border-radius dropdown-tool-mode"
|
class="top-tool-icon-button right-border-radius dropdown-tool-mode"
|
||||||
slot="reference"
|
slot="reference"
|
||||||
|
{iconSize}
|
||||||
>
|
>
|
||||||
{@html mdiChevronDown}
|
{#if $hideAllGuessOne}
|
||||||
|
{@html mdiViewDashboard}
|
||||||
|
{:else}
|
||||||
|
{@html mdiSquare}
|
||||||
|
{/if}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
||||||
<Popover slot="floating" --popover-padding-inline="0">
|
<Popover slot="floating" --popover-padding-inline="0">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue