Skip to content

Commit 0dfc856

Browse files
authored
Merge pull request #1727 from sertxudev/fix/button-padding
Fixed button padding
2 parents b0b48a7 + 0b5153d commit 0dfc856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/resources/views/flux/button/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
->add('relative items-center font-medium justify-center gap-2 whitespace-nowrap')
6363
->add('disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none')
6464
->add(match ($size) { // Size...
65-
'base' => 'h-10 text-sm rounded-lg' . ' ' . ($square ? 'w-10' : 'px-4 [&:has(>:not(span):first-child)]:ps-3 [&:has(>:not(span):last-child)]:pe-3'),
65+
'base' => 'h-10 text-sm rounded-lg' . ' ' . ($square ? 'w-10' : 'px-4 [&:has(>:not(span):not([data-flux-loading-indicator]):first-child)]:ps-3 [&:has(>:not(span):not([data-flux-loading-indicator]):last-child)]:pe-3'),
6666
'sm' => 'h-8 text-sm rounded-md' . ' ' . ($square ? 'w-8' : 'px-3'),
6767
'xs' => 'h-6 text-xs rounded-md' . ' ' . ($square ? 'w-6' : 'px-2'),
6868
})

0 commit comments

Comments
 (0)