Simplify asReference

This commit is contained in:
Damien Elmes 2022-09-26 10:03:02 +10:00
parent 4089e76800
commit dd939beafe

View File

@ -27,18 +27,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
placement="bottom"
inline
on:close={() => (showFloating = false)}
let:asReference
>
<span use:asReference>
<IconButton
tooltip={tr.actionsOptions()}
--border-left-radius="5px"
--border-right-radius="5px"
on:click={() => (showFloating = !showFloating)}
>
{@html cogIcon}
</IconButton>
</span>
<IconButton
slot="reference"
tooltip={tr.actionsOptions()}
--border-left-radius="5px"
--border-right-radius="5px"
on:click={() => (showFloating = !showFloating)}
>
{@html cogIcon}
</IconButton>
<Popover slot="floating" --popover-padding-inline="0">
<DropdownItem on:click={toggleShrinkImages}>