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" placement="bottom"
inline inline
on:close={() => (showFloating = false)} on:close={() => (showFloating = false)}
let:asReference
> >
<span use:asReference> <IconButton
<IconButton slot="reference"
tooltip={tr.actionsOptions()} tooltip={tr.actionsOptions()}
--border-left-radius="5px" --border-left-radius="5px"
--border-right-radius="5px" --border-right-radius="5px"
on:click={() => (showFloating = !showFloating)} on:click={() => (showFloating = !showFloating)}
> >
{@html cogIcon} {@html cogIcon}
</IconButton> </IconButton>
</span>
<Popover slot="floating" --popover-padding-inline="0"> <Popover slot="floating" --popover-padding-inline="0">
<DropdownItem on:click={toggleShrinkImages}> <DropdownItem on:click={toggleShrinkImages}>