mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
Add min-width param to Share button
This avoids resizing when displaying the Loading indicator.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user