mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-04 23:28:10 +01:00
add server description to grid view too (#1851)
This commit is contained in:
parent
21f9f259d0
commit
d61583cd7b
1
.gitignore
vendored
1
.gitignore
vendored
@ -21,6 +21,7 @@ yarn-error.log
|
||||
/.idea
|
||||
/.nova
|
||||
/.vscode
|
||||
/.ddev
|
||||
|
||||
public/assets/manifest.json
|
||||
/database/*.sqlite*
|
||||
|
||||
@ -22,7 +22,10 @@
|
||||
"></div>
|
||||
@endif
|
||||
|
||||
<div class="flex items-center mb-5 gap-2">
|
||||
<div @class([
|
||||
'flex items-center gap-2',
|
||||
'mb-5' => !$server->description,
|
||||
])>
|
||||
<x-filament::icon-button
|
||||
:icon="$server->condition->getIcon()"
|
||||
:color="$server->condition->getColor()"
|
||||
@ -45,6 +48,12 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if ($server->description)
|
||||
<div class="text-left mb-1 ml-4 pl-4">
|
||||
<p class="text-base text-gray-400">{{ Str::limit($server->description, 40, preserveWords: true) }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="flex justify-between text-center items-center gap-4">
|
||||
<div>
|
||||
<p class="text-sm dark:text-gray-400">{{ trans('server/dashboard.cpu') }}</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user