Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Oct 31, 2024
1 parent bae1b4d commit b8adcf8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Filament/Admin/Resources/ResultResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static function table(Table $table): Table
])
->paginated([10, 25, 50, 100])
->deferLoading()
->recordClasses(fn (Result $result) => $result->has_issues ? 'bg-warning-50' : null);
->recordClasses(fn (Result $result) => $result->has_issues ? 'bg-warning-50 dark:bg-warning-400/10' : null);
}

public static function getRelations(): array
Expand Down
1 change: 1 addition & 0 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function panel(Panel $panel): Panel
->myProfile(slug: 'profile')
->enableTwoFactorAuthentication(),
])
->viteTheme('resources/css/filament/common/theme.css')
->discoverResources(in: app_path('Filament/Admin/Resources'), for: 'App\\Filament\\Admin\\Resources')
->discoverPages(in: app_path('Filament/Admin/Pages'), for: 'App\\Filament\\Admin\\Pages')
->pages([
Expand Down
10 changes: 10 additions & 0 deletions resources/css/filament/common/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import preset from '../../../../vendor/filament/filament/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
3 changes: 3 additions & 0 deletions resources/css/filament/common/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import '/vendor/filament/filament/resources/css/theme.css';

@config 'tailwind.config.js';
6 changes: 5 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import laravel, { refreshPaths } from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
input: [
'resources/css/app.css',
'resources/css/filament/common/theme.css',
'resources/js/app.js',
],
refresh: [...refreshPaths, 'app/Livewire/**'],
}),
],
Expand Down

0 comments on commit b8adcf8

Please sign in to comment.