diff --git a/ts/components/Select.svelte b/ts/components/Select.svelte index df6eec1e0..0f65b1b7e 100644 --- a/ts/components/Select.svelte +++ b/ts/components/Select.svelte @@ -26,7 +26,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html (showFloating = false)} let:asReference diff --git a/ts/editor/editor-toolbar/OptionsButton.svelte b/ts/editor/editor-toolbar/OptionsButton.svelte index 4386aae92..089a8029e 100644 --- a/ts/editor/editor-toolbar/OptionsButton.svelte +++ b/ts/editor/editor-toolbar/OptionsButton.svelte @@ -35,12 +35,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html } - (showFloating = false)} -> + (showFloating = false)}> (showFloating = false)} > diff --git a/ts/editor/image-overlay/ImageOverlay.svelte b/ts/editor/image-overlay/ImageOverlay.svelte index 71605ee8a..56146c2f4 100644 --- a/ts/editor/image-overlay/ImageOverlay.svelte +++ b/ts/editor/image-overlay/ImageOverlay.svelte @@ -266,7 +266,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {#if referenceRange} - +
{#each foundSymbols as found, index (found.symbol)} diff --git a/ts/sveltelib/position/position-floating.ts b/ts/sveltelib/position/position-floating.ts index 43bd84637..100b4bb04 100644 --- a/ts/sveltelib/position/position-floating.ts +++ b/ts/sveltelib/position/position-floating.ts @@ -10,7 +10,6 @@ import type { } from "@floating-ui/dom"; import { arrow, - autoPlacement, computePosition, flip, hide, @@ -22,7 +21,7 @@ import { import type { PositionAlgorithm } from "./position-algorithm"; export interface PositionFloatingArgs { - placement: Placement | Placement[] | "auto"; + placement: Placement; arrow: HTMLElement; shift: number; offset: number; @@ -47,7 +46,6 @@ function positionFloating({ floating: FloatingElement, ): Promise { const middleware: Middleware[] = [ - // the .shift() lines below expect flip() to be first flip(), offset(offsetArg), shift({ padding: shiftArg }), @@ -60,20 +58,9 @@ function positionFloating({ const computeArgs: Partial = { middleware, + placement, }; - if (Array.isArray(placement)) { - const allowedPlacements = placement; - // flip() is incompatible with autoPlacement - middleware.shift(); - middleware.push(autoPlacement({ allowedPlacements })); - } else if (placement === "auto") { - middleware.shift(); - middleware.push(autoPlacement()); - } else { - computeArgs.placement = placement; - } - if (hideIfEscaped) { middleware.push(hide({ strategy: "escaped" })); } diff --git a/ts/tag-editor/TagWithTooltip.svelte b/ts/tag-editor/TagWithTooltip.svelte index a4a1f17bd..2ed282b25 100644 --- a/ts/tag-editor/TagWithTooltip.svelte +++ b/ts/tag-editor/TagWithTooltip.svelte @@ -70,7 +70,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {:else if shorten && hasMultipleParts(name)} - + show.set(false)} diff --git a/ts/tag-editor/tag-options-button/TagsSelectedButton.svelte b/ts/tag-editor/tag-options-button/TagsSelectedButton.svelte index 92a8f2424..195989ac5 100644 --- a/ts/tag-editor/tag-options-button/TagsSelectedButton.svelte +++ b/ts/tag-editor/tag-options-button/TagsSelectedButton.svelte @@ -25,7 +25,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html