diff --git a/packages/ui/src/components/Button.svelte b/packages/ui/src/components/Button.svelte index 86ac61d2fb..260a0b2c11 100644 --- a/packages/ui/src/components/Button.svelte +++ b/packages/ui/src/components/Button.svelte @@ -24,6 +24,7 @@ export let labelParams: Record = {} export let kind: 'primary' | 'secondary' | 'no-border' | 'transparent' | 'link' | 'dangerous' = 'secondary' export let size: 'small' | 'medium' | 'large' | 'x-large' = 'medium' + export let shape: 'circle' | undefined = undefined export let icon: Asset | AnySvelteComponent | undefined = undefined export let justify: 'left' | 'center' = 'center' export let disabled: boolean = false @@ -31,7 +32,7 @@ export let width: string | undefined = undefined export let resetIconSize: boolean = false export let focus: boolean = false - export let isCircle: boolean = false + export let title: string | undefined = undefined export let input: HTMLButtonElement | undefined = undefined @@ -49,10 +50,11 @@ bind:this={input} class="button {kind} {size} jf-{justify}" class:only-icon={iconOnly} - class:border-radius-1={!isCircle} - class:border-radius-4={isCircle} + class:border-radius-1={shape !== 'circle'} + class:border-radius-4={shape === 'circle'} disabled={disabled || loading} style={width ? 'width: ' + width : ''} + {title} on:click > {#if icon && !loading} diff --git a/plugins/board-resources/src/components/editor/CardDetails.svelte b/plugins/board-resources/src/components/editor/CardDetails.svelte index 364db343f6..972cfc35ce 100644 --- a/plugins/board-resources/src/components/editor/CardDetails.svelte +++ b/plugins/board-resources/src/components/editor/CardDetails.svelte @@ -77,7 +77,7 @@ {#each members as member} {/each} -