impr: button consistency
This commit is contained in:
3 files changed
+9
-6
No files matched your search
@@ -506,11 +506,9 @@
|
|||||||
data = draft
|
data = draft
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
rounding="xl"
|
size="square-lg"
|
||||||
size="custom"
|
|
||||||
disabled={!getSessionStorage('postDraft')}
|
disabled={!getSessionStorage('postDraft')}
|
||||||
title="Restore From Draft"
|
title="Restore From Draft"
|
||||||
class=" aspect-square h-full"
|
|
||||||
>
|
>
|
||||||
<Icon src={ArrowPath} size="16" mini />
|
<Icon src={ArrowPath} size="16" mini />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
import type { ButtonProps } from 'mono-svelte/button/Button.svelte'
|
import type { ButtonProps } from 'mono-svelte/button/Button.svelte'
|
||||||
import type { Snippet } from 'svelte'
|
import type { Snippet } from 'svelte'
|
||||||
import { Icon, type IconSource } from 'svelte-hero-icons/dist'
|
import { Icon, type IconSource } from 'svelte-hero-icons/dist'
|
||||||
|
import type { ClassValue } from 'svelte/elements'
|
||||||
|
|
||||||
interface Props extends ButtonProps {
|
interface Props extends ButtonProps {
|
||||||
label: string
|
label: string
|
||||||
@@ -11,7 +12,7 @@
|
|||||||
href?: string | undefined
|
href?: string | undefined
|
||||||
adaptive?: boolean
|
adaptive?: boolean
|
||||||
isSelectedFilter?: (path: string) => boolean
|
isSelectedFilter?: (path: string) => boolean
|
||||||
class?: string
|
class?: ClassValue
|
||||||
customIcon?: Snippet<[{ size: number; isSelected?: boolean }]>
|
customIcon?: Snippet<[{ size: number; isSelected?: boolean }]>
|
||||||
children?: Snippet
|
children?: Snippet
|
||||||
}
|
}
|
||||||
@@ -34,7 +35,7 @@
|
|||||||
<Button
|
<Button
|
||||||
{...rest}
|
{...rest}
|
||||||
color="none"
|
color="none"
|
||||||
rounding="xl"
|
rounding="none"
|
||||||
class={[
|
class={[
|
||||||
'nav-btn',
|
'nav-btn',
|
||||||
adaptive && 'nav-btn-dynamic',
|
adaptive && 'nav-btn-dynamic',
|
||||||
@@ -80,6 +81,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nav-btn {
|
.nav-btn {
|
||||||
|
border-radius: var(--radius-xl);
|
||||||
width: calc(var(--spacing) * 10);
|
width: calc(var(--spacing) * 10);
|
||||||
height: calc(var(--spacing) * 10);
|
height: calc(var(--spacing) * 10);
|
||||||
@variant md {
|
@variant md {
|
||||||
|
|||||||
@@ -40,7 +40,10 @@
|
|||||||
icon={Home}
|
icon={Home}
|
||||||
href="/"
|
href="/"
|
||||||
label={$t('nav.home')}
|
label={$t('nav.home')}
|
||||||
class="logo border-0 md:rounded-full! md:w-10! md:h-10 md:px-0! -order-1"
|
class={[
|
||||||
|
'logo border-0 md:w-10! md:h-10 md:px-0! -order-1',
|
||||||
|
!LINKED_INSTANCE_URL ? 'md:rounded-full!' : 'rounded-none!',
|
||||||
|
]}
|
||||||
adaptive={false}
|
adaptive={false}
|
||||||
>
|
>
|
||||||
{#snippet customIcon()}
|
{#snippet customIcon()}
|
||||||
|
|||||||
Reference in new issue
Block a user