Skip to content

Commit cfe9034

Browse files
fix z index translationcolumn
1 parent aa5bf5b commit cfe9034

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

packages/localization/resources/views/filament/tables/columns/translations.blade.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@
3939
<div style="padding-left: 30%; position: relative; height: 28px; min-width: 66px;">
4040
<div style="position: relative; height: 28px; min-width: 66px;">
4141
@foreach($visibleFlags as $index => $flag)
42-
@php
43-
$isTrashed = str_contains($flag, 'trashed');
44-
$flagComponent = str_replace(' trashed', '', $flag);
45-
@endphp
46-
<span style="position: absolute; left: {{ $index * 18 }}px; z-index: {{ 10 + $index }};">
47-
<x-dynamic-component :component="$flagComponent"
48-
style="width: 24px; height: 24px; border-radius: 50%; background: #fff;" />
49-
</span>
42+
@php
43+
$isTrashed = str_contains($flag, 'trashed');
44+
$flagComponent = str_replace(' trashed', '', $flag);
45+
@endphp
46+
<span style="position: absolute; left: {{ $index * 18 }}px; z-index: {{ 5 + $index }};">
47+
<x-dynamic-component :component="$flagComponent"
48+
style="width: 24px; height: 24px; border-radius: 50%; background: #fff;" />
49+
</span>
5050
@endforeach
51-
@if($remainingFlags > 0)
52-
<span style="position: absolute; left: {{ (count($visibleFlags) * 18) + 8 }}px; z-index: 20;">
51+
@if($remainingFlags > 0)
52+
<span style="position: absolute; left: {{ (count($visibleFlags) * 18) + 8 }}px; z-index: {{ 5 + $index }};">
5353
<div class="flex items-center justify-center w-6 h-6 text-sm font-bold text-black rounded-full bg-white border border-gray-300">
54-
+{{ $remainingFlags }}
55-
</div>
56-
</span>
57-
@endif
54+
+{{ $remainingFlags }}
55+
</div>
56+
</span>
57+
@endif
5858
</div>
5959
</div>
6060
</x-filament-forms::field-wrapper>

0 commit comments

Comments
 (0)