Skip to content

Commit

Permalink
fix : adding padding to column table
Browse files Browse the repository at this point in the history
  • Loading branch information
webplusmultimedia committed Mar 21, 2024
1 parent 13f291f commit 3fa993f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
17 changes: 0 additions & 17 deletions resources/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,6 @@
--gallery-file-btn-edit-color: rgba(85, 206, 42, 1);
color: var(--gallery-file-btn-edit-color);


/*&:disabled {
--gallery-file-btn-edit-color: rgba(85, 206, 42, 0.62);
&:hover {
--gallery-file-btn-edit-color: rgba(85, 206, 42, 0.62);
}
}*/

&:hover {
--gallery-file-btn-edit-color: #55ce2a;
}
Expand All @@ -149,14 +140,6 @@
color: var(--gallery-file-btn-delete-color);
--gallery-file-btn-delete-color: rgba(249, 56, 76, 0.62);

/* &:disabled {
--gallery-file-btn-delete-color: rgba(249, 56, 76, 0.62);
&:hover {
--gallery-file-btn-delete-color: rgba(249, 56, 76, 0.62);
}
}*/

&:hover {
--gallery-file-btn-delete-color: #f9384c;
}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/table/gallery-column.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@if(!$hasAvatars())
{{ $record->getFirstMedia($getName())?->withImageProperties($getThumbWidth(),$getThumbHeight()) }}
@else
<div class="flex -space-x-3 overflow-hidden" style="height: {{ $getThumbHeight() }}px">
<div class="flex -space-x-3 p-2 overflow-hidden" style="height: {{ $getThumbHeight() }}px">
@foreach(collect($record->getMedias($getName()))->take($getMaxAvatars())->all() as $media)
<img class="inline-block rounded-full ring-2 ring-white object-cover" src="{{ $media->getCropUrl($getThumbWidth(),$getThumbHeight()) }}"
alt="{{ $media->getCustomProperty('alt') }}" width="{{ $getThumbWidth() }}"
Expand Down
3 changes: 2 additions & 1 deletion tests/JsonMediaGalleryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@

$jsonInput->container(
ComponentContainer::make(
$livewire = Livewire::make()
Livewire::make()
->data(['images' => null])
)->statePath('data')
->components([$jsonInput])
->fill(['images' => null])
);

expect($jsonInput->getState())->toEqual([]);
});

0 comments on commit 3fa993f

Please sign in to comment.