Skip to content

Commit 243048a

Browse files
committed
Enhanced rtl styles
1 parent ef1a2ed commit 243048a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

resources/views/components/tree/item.blade.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@
1818

1919
<li class="filament-tree-row dd-item" data-id="{{ $recordKey }}">
2020
<div wire:loading.remove.delay
21-
wire:target="{{ implode(',', Tree::LOADING_TARGETS) }}"
21+
wire:target="{{ implode(',', Tree::LOADING_TARGETS) }}"
2222
@class([
23-
'bg-white rounded-lg border border-gray-300 dark:border-white/10 dd-handle h-10',
23+
'rounded-lg border dd-handle h-10',
2424
'mb-2',
25-
'flex w-full items-center ',
26-
'dark:bg-gray-900' => Filament::hasDarkMode(),
25+
'flex w-full items-center',
26+
'border-gray-300 bg-white dark:border-white/10 dark:bg-gray-900',
2727
])>
2828

29-
<button type="button" class="h-full flex items-center bg-gray-50 dark:bg-black/30 rounded-l-lg border-r rtl:border-l border-gray-300 dark:border-white/10 px-px">
30-
<x-heroicon-m-ellipsis-vertical class="text-gray-400 dark:text-gray-500 w-4 h-4 -mr-2"/>
29+
<button type="button" @class([
30+
'h-full flex items-center',
31+
'rounded-l-lg border-r rtl:rounded-l rtl:border-r-0 rtl:border-l px-px',
32+
'bg-gray-50 border-gray-300 dark:bg-white/5 dark:border-white/10',
33+
])>
34+
<x-heroicon-m-ellipsis-vertical class="text-gray-400 dark:text-gray-500 w-4 h-4 -mr-2 rtl:mr-0 rtl:-ml-2"/>
3135
<x-heroicon-m-ellipsis-vertical class="text-gray-400 dark:text-gray-500 w-4 h-4"/>
3236
</button>
3337

@@ -39,7 +43,7 @@
3943
@endif
4044

4145
<span @class([
42-
'ml-4' => !$icon,
46+
'ml-4 rtl:mr-4' => !$icon,
4347
'font-semibold'
4448
])>
4549
{{ $title }}

0 commit comments

Comments
 (0)