Simplify asReference
This commit is contained in:
parent
4089e76800
commit
dd939beafe
@ -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}>
|
||||||
|
Loading…
Reference in New Issue
Block a user