Skip to content

Commit 21fe7ca

Browse files
scott graysonscott grayson
authored andcommitted
fix: remove invalid iconSize method from TextColumn
- Remove iconSize('sm') method which doesn't exist on TextColumn - Keep iconPosition('before') and extraAttributes for proper spacing - Icons will still have proper spacing with gap-2 class
1 parent ab3c1c4 commit 21fe7ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Resources/LibraryItemResource.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public static function table(Table $table): Table
9999
$record->type === 'folder' ? 'success' : 'gray'
100100
)
101101
->iconPosition('before')
102-
->iconSize('sm')
103102
->extraAttributes(['class' => 'flex items-center gap-2']),
104103
Tables\Columns\TextColumn::make('creator.name')
105104
->label('Created By')
@@ -129,8 +128,8 @@ public static function table(Table $table): Table
129128
DeleteBulkAction::make(),
130129
]),
131130
])
132-
->recordUrl(fn (LibraryItem $record): string =>
133-
$record->type === 'folder'
131+
->recordUrl(fn (LibraryItem $record): string =>
132+
$record->type === 'folder'
134133
? static::getUrl('index', ['parent' => $record->id])
135134
: static::getUrl('view', ['record' => $record])
136135
);

0 commit comments

Comments
 (0)