From 36b335819af64675568655561ebe523716fcc967 Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 17 May 2026 15:11:56 +0200 Subject: [PATCH] =?UTF-8?q?fix(ui):=20button=20spinner=20overlay=20?= =?UTF-8?q?=E2=80=94=20text=20fades=20to=2050%,=20no=20layout=20shift?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keep label in DOM with opacity-50 during loading, spinner sits as absolute inset-0 overlay. Button width stays constant, no jump. Co-Authored-By: Claude Sonnet 4.6 --- resources/views/components/ui/button.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/components/ui/button.blade.php b/resources/views/components/ui/button.blade.php index e1c3a85..b6c8361 100644 --- a/resources/views/components/ui/button.blade.php +++ b/resources/views/components/ui/button.blade.php @@ -21,11 +21,11 @@ $cls = $base . ' ' . ($variants[$variant] ?? $variants['primary']); {{ $attributes->merge(['type' => $type, 'class' => $cls]) }} @if($action) wire:loading.attr="disabled" wire:target="{{ $action }}" @endif > - + {{ $slot->isNotEmpty() ? $slot : $label }} @if($action) - +