Add min-width param to Share button

This avoids resizing when displaying the Loading indicator.
This commit is contained in:
Sebastian Martinez
2024-03-20 16:18:21 +01:00
committed by Rūdolfs Ošiņš
parent fe7cd1b4e5
commit f6a77bec94
2 changed files with 8 additions and 2 deletions
+2
View File
@@ -28,6 +28,7 @@
export let styleFontFamily: string | undefined = undefined;
export let stylePadding: string | undefined = undefined;
export let styleWidth: "100%" | undefined = undefined;
export let styleMinWidth: string | undefined = undefined;
export let styleBorderRadius: string | undefined = undefined;
export let styleJustifyContent: "center" | "flex-start" = "center";
@@ -319,6 +320,7 @@
style:font-family={styleFontFamily}
style:padding={stylePadding}
style:width={styleWidth}
style:min-width={styleMinWidth}
style:border-radius={styleBorderRadius}
style:justify-content={styleJustifyContent}
on:blur
+6 -2
View File
@@ -8,9 +8,9 @@
import Button from "@app/components/Button.svelte";
import IconSmall from "@app/components/IconSmall.svelte";
import Loading from "@app/components/Loading.svelte";
import Popover from "@app/components/Popover.svelte";
import ShareButton from "./Header/ShareButton.svelte";
import Loading from "@app/components/Loading.svelte";
export let baseUrl: BaseUrl;
@@ -60,7 +60,11 @@
<ShareButton slot="popover" />
</Popover>
{:else}
<Button variant="outline" size="regular" on:click={copy}>
<Button
styleMinWidth="5.75rem"
variant="outline"
size="regular"
on:click={copy}>
{#if loading}
<Loading small noDelay />
{:else}