Skip to content

Commit 3eb37ac

Browse files
Update Dropdown.php (#451)
* Update Dropdown.php * Use Tailwind --------- Co-authored-by: Robson Tenório <[email protected]>
1 parent 434f72f commit 3eb37ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/View/Components/Dropdown.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct(
1515
public ?string $icon = 'o-chevron-down',
1616
public ?bool $right = false,
1717

18-
//Slots
18+
// Slots
1919
public mixed $trigger = null
2020
) {
2121
$this->uuid = "mary" . md5(serialize($this));
@@ -44,12 +44,12 @@ class="dropdown"
4444
@endif
4545
4646
<ul
47-
class="p-2 shadow menu z-[1] border border-base-200 bg-base-100 dark:bg-base-200 rounded-box whitespace-nowrap"
47+
class="p-2 shadow menu z-[1] border border-base-200 bg-base-100 dark:bg-base-200 rounded-box w-auto min-w-max"
4848
@click="open = false"
4949
x-anchor.{{ $right ? 'bottom-end' : 'bottom-start' }}="$refs.button"
5050
>
5151
<div wire:key="dropdown-slot-{{ $uuid }}">
52-
{{ $slot }}
52+
{{ $slot }}
5353
</div>
5454
</ul>
5555
</details>

0 commit comments

Comments
 (0)