Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add `min-width` param to Share button
Sebastian Martinez committed 2 years ago
commit f6a77bec9401c35b1baa19d356405a9d77ed8e0d
parent fe7cd1b4e52d15c27f89e23d98e8ccad9c3a8bff
2 files changed +8 -2
modified src/components/Button.svelte
@@ -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
modified src/views/projects/Share.svelte
@@ -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}