Restore LF line endings on the two files touched for the height fix
Docker / Docker Build & Push (push) Successful in 3m21s
Lint / Lint (push) Successful in 30s
Tests / Go backend (push) Successful in 30s
Tests / Dashboard checks (push) Successful in 38s

The previous commit's edit tool wrote these two files with CRLF endings,
turning a 4-line content change into a full-file diff. Convert back to
LF to match the rest of the codebase; no content change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Sonnet 5 committed 2026-09-13 11:01:32 +02:00
1 parent b9dd2ffde6
commit 1d99f0272d
2 files changed
+58 -58

No files matched your search

+39 -39
View File
@@ -1,39 +1,39 @@
<script module>
import { cva } from 'class-variance-authority';
export const buttonVariants = cva(
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0',
{
variants: {
variant: {
default: 'bg-primary text-primary-fg hover:opacity-90',
secondary: 'bg-surface text-fg hover:bg-surface-hover border border-border',
ghost: 'hover:bg-surface-hover text-fg',
outline: 'border border-border bg-transparent hover:bg-surface-hover text-fg',
danger: 'bg-danger text-danger-fg hover:opacity-90',
link: 'text-primary underline-offset-4 hover:underline',
},
size: {
default: 'h-10 px-4 py-2',
sm: 'h-10 rounded-md px-3 text-xs',
lg: 'h-10 rounded-md px-6',
icon: 'h-10 w-10',
},
},
defaultVariants: {
variant: 'default',
size: 'default',
},
},
);
</script>
<script>
import { cn } from '$lib/utils/cn.js';
let { class: className, variant, size, type = 'button', ref = $bindable(null), children, ...restProps } = $props();
</script>
<button bind:this={ref} {type} class={cn(buttonVariants({ variant, size }), className)} {...restProps}>
{@render children?.()}
</button>
<script module>
import { cva } from 'class-variance-authority';
export const buttonVariants = cva(
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0',
{
variants: {
variant: {
default: 'bg-primary text-primary-fg hover:opacity-90',
secondary: 'bg-surface text-fg hover:bg-surface-hover border border-border',
ghost: 'hover:bg-surface-hover text-fg',
outline: 'border border-border bg-transparent hover:bg-surface-hover text-fg',
danger: 'bg-danger text-danger-fg hover:opacity-90',
link: 'text-primary underline-offset-4 hover:underline',
},
size: {
default: 'h-10 px-4 py-2',
sm: 'h-10 rounded-md px-3 text-xs',
lg: 'h-10 rounded-md px-6',
icon: 'h-10 w-10',
},
},
defaultVariants: {
variant: 'default',
size: 'default',
},
},
);
</script>
<script>
import { cn } from '$lib/utils/cn.js';
let { class: className, variant, size, type = 'button', ref = $bindable(null), children, ...restProps } = $props();
</script>
<button bind:this={ref} {type} class={cn(buttonVariants({ variant, size }), className)} {...restProps}>
{@render children?.()}
</button>