Skip to content

Commit 73c90bb

Browse files
committed
Improve menu item tree layout
1 parent b4c2e89 commit 73c90bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Resources/MenuResource/Pages/ManageMenuItems.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function getTitle(): string
7070

7171
public function getBreadcrumb(): string
7272
{
73+
//TODO fix
7374
return flexiblePagesTrans('menu_items.manage.breadcrumb');
7475
}
7576

@@ -87,9 +88,11 @@ public static function getInfolistColumns(): array
8788
{
8889
return [
8990
IconEntry::make('is_visible')
90-
->icon(fn (bool $state): string => $state ? '' : 'heroicon-o-eye-slash')
91+
->label('')
92+
->icon(fn (bool $state): string => $state ? 'heroicon-o-eye' : 'heroicon-o-eye-slash')
9193
->color(fn (bool $state): string => $state ? 'gray' : 'warning')
9294
->tooltip(fn (bool $state): ?string => $state ? null : flexiblePagesTrans('menu_items.status.hidden'))
95+
->hidden(fn (bool $state): bool => $state)
9396
->size('sm'),
9497
];
9598
}

0 commit comments

Comments
 (0)