Fix gap for profile repeaters (api keys, ssh keys, activity logs) (#1613)

This commit is contained in:
Boy132 2025-08-15 14:07:23 +02:00 committed by GitHub
parent b5ebd544f4
commit f31aa78f6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -322,6 +322,7 @@ class EditProfile extends BaseEditProfile
Section::make(trans('profile.api_keys'))->columnSpan(2)->schema([ Section::make(trans('profile.api_keys'))->columnSpan(2)->schema([
Repeater::make('api_keys') Repeater::make('api_keys')
->hiddenLabel() ->hiddenLabel()
->inlineLabel(false)
->relationship('apiKeys') ->relationship('apiKeys')
->addable(false) ->addable(false)
->itemLabel(fn ($state) => $state['identifier']) ->itemLabel(fn ($state) => $state['identifier'])
@ -406,6 +407,7 @@ class EditProfile extends BaseEditProfile
Section::make(trans('profile.ssh_keys'))->columnSpan(2)->schema([ Section::make(trans('profile.ssh_keys'))->columnSpan(2)->schema([
Repeater::make('ssh_keys') Repeater::make('ssh_keys')
->hiddenLabel() ->hiddenLabel()
->inlineLabel(false)
->relationship('sshKeys') ->relationship('sshKeys')
->addable(false) ->addable(false)
->itemLabel(fn ($state) => $state['name']) ->itemLabel(fn ($state) => $state['name'])
@ -445,14 +447,17 @@ class EditProfile extends BaseEditProfile
->icon('tabler-history') ->icon('tabler-history')
->schema([ ->schema([
Repeater::make('activity') Repeater::make('activity')
->label('') ->hiddenLabel()
->inlineLabel(false)
->deletable(false) ->deletable(false)
->addable(false) ->addable(false)
->relationship(null, function (Builder $query) { ->relationship(null, function (Builder $query) {
$query->orderBy('timestamp', 'desc'); $query->orderBy('timestamp', 'desc');
}) })
->schema([ ->schema([
Placeholder::make('activity!')->label('')->content(fn (ActivityLog $log) => new HtmlString($log->htmlable())), Placeholder::make('log')
->hiddenLabel()
->content(fn (ActivityLog $log) => new HtmlString($log->htmlable())),
]), ]),
]), ]),