mirror of
https://github.com/pelican-dev/panel.git
synced 2025-12-08 18:30:15 +01:00
Fix: No live preview for fonts (#1921)
This commit is contained in:
parent
07763d912b
commit
25c8ff3f1f
@ -37,7 +37,6 @@ use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Tabs;
|
||||
use Filament\Schemas\Components\Tabs\Tab;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
use Filament\Schemas\Components\Utilities\Set;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Colors\Color;
|
||||
use Filament\Support\Enums\Width;
|
||||
@ -455,6 +454,7 @@ class EditProfile extends BaseEditProfile
|
||||
->minValue(1)
|
||||
->numeric()
|
||||
->required()
|
||||
->live()
|
||||
->default(14),
|
||||
Select::make('console_font')
|
||||
->label(trans('profile.font'))
|
||||
@ -479,9 +479,8 @@ class EditProfile extends BaseEditProfile
|
||||
|
||||
return $fonts;
|
||||
})
|
||||
->reactive()
|
||||
->default('monospace')
|
||||
->afterStateUpdated(fn ($state, Set $set) => $set('font_preview', $state)),
|
||||
->live()
|
||||
->default('monospace'),
|
||||
TextEntry::make('font_preview')
|
||||
->label(trans('profile.font_preview'))
|
||||
->columnSpan(2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user