Andrew 1 ヶ月 前
コミット
91a107a62f
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      app/Filament/Resources/AlbumResource.php

+ 1
- 1
app/Filament/Resources/AlbumResource.php ファイルの表示

@@ -59,9 +59,9 @@ class AlbumResource extends Resource
59 59
                     ])->columnSpanFull()->columns(2),
60 60
                     FileUpload::make('news_banner')->label('列表大圖')
61 61
                         ->image()
62
+                        ->imageResizeTargetWidth('1920')
62 63
                         ->optimize('webp')
63 64
                         ->directory('album/img')
64
-                        ->imageResizeTargetWidth('1920')
65 65
                         ->acceptedFileTypes(['image/jpeg', 'image/jpg', 'image/png', 'image/webp'])->required()->imageEditor(),
66 66
                     FileUpload::make('news_img_pc')->label('列表圖(desktop)')
67 67
                         ->image()