misc: design fixes

This commit is contained in:
James Xylight committed 2025-08-17 15:56:36 -07:00
1 parent 52f3b9da2a
commit bf0d4cf238
12 files changed
+87 -65

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@
{...rest}
class="{allowIconOnly
? 'max-md:px-1.5 max-md:py-1.5'
: ''} px-2.5 py-1 {badgeRoundness[
: ''} px-2 py-1 {badgeRoundness[
rounding
]} text-xs font-medium flex items-center gap-1 ring-1 ring-inset {badgeColor[
color
+2 -2
View File
@@ -46,7 +46,7 @@
export const buttonSize = {
xs: 'px-2 py-1 text-xs',
sm: 'px-3 py-1.5 text-xs',
sm: 'px-3 py-1.5 text-[12px]',
md: 'px-3 py-1.5',
lg: 'px-4 py-2',
xl: 'px-6 py-3',
@@ -160,7 +160,7 @@
<!--
@component
@slot `prefix` -- Will be replaced if `loading` is `true`.
@slot `suffix`
-->
+2 -4
View File
@@ -39,9 +39,7 @@
import Label from '../forms/Label.svelte'
import { generateID } from '../forms/helper.js'
const borderClass = `
border border-slate-200 border-b-slate-300 dark:border-zinc-900 dark:border-t-zinc-800
`
const borderClass = `border border-slate-200 border-b-slate-300 dark:border-zinc-800`
let {
label = undefined,
@@ -52,7 +50,7 @@
size = 'md',
id = generateID(),
inlineAffixes = false,
shadow = 'none',
shadow = 'sm',
element = $bindable(),
class: clazz = '',
customLabel: passedCustomLabel,
+2 -2
View File
@@ -174,9 +174,9 @@
</Menu>
<Icon
src={ChevronUpDown}
mini
micro
size="16"
class="absolute right-0 top-1/4 mx-2 box-border pointer-events-none"
class="absolute right-0 top-1/4 mx-1.5 box-border pointer-events-none"
/>
</div>
</div>