diff --git a/packages/admin/src/Filament/Resources/OrderResource/Pages/ManageOrder.php b/packages/admin/src/Filament/Resources/OrderResource/Pages/ManageOrder.php index 71a05cd7b7..13b39906a2 100644 --- a/packages/admin/src/Filament/Resources/OrderResource/Pages/ManageOrder.php +++ b/packages/admin/src/Filament/Resources/OrderResource/Pages/ManageOrder.php @@ -352,13 +352,20 @@ public function infolist(Infolist $infolist): Infolist ->schema(fn ($state) => blank($state) ? [ Infolists\Components\TextEntry::make('no_additional_info') ->hiddenLabel() - // ->weight(FontWeight::SemiBold) ->getStateUsing(fn () => __('lunarpanel::order.infolist.no_additional_info.label')), ] : collect($state) ->map(fn ($value, $key) => Infolists\Components\TextEntry::make('meta_'.$key) ->state($value) ->label($key) - ->inlineLabel()) + ->copyable() + ->limit(50)->tooltip(function (Infolists\Components\TextEntry $component): ?string { + $state = $component->getState(); + if (strlen($state) <= $component->getCharacterLimit()) { + return null; + } + + return $state; + })) ->toArray()), ])