Add hint about overhead when using memory limit (#1069)

* Add hint about overhead when using memory limit

* Update lang/en/admin/server.php

Co-authored-by: Boy132 <Boy132@users.noreply.github.com>

* escape `'`

---------

Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
This commit is contained in:
Charles 2025-03-15 13:10:25 -04:00 committed by GitHub
parent 7f0c7da37f
commit 998ad2ee31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View File

@ -551,6 +551,8 @@ class CreateServer extends CreateRecord
->hidden(fn (Get $get) => $get('unlimited_mem'))
->label(trans('admin/server.memory_limit'))->inlineLabel()
->suffix(config('panel.use_binary_prefix') ? 'MiB' : 'MB')
->hintIcon('tabler-question-mark')
->hintIconToolTip(trans('admin/server.memory_helper'))
->default(0)
->required()
->columnSpan(2)

View File

@ -248,6 +248,8 @@ class EditServer extends EditRecord
->hidden(fn (Get $get) => $get('unlimited_mem'))
->label(trans('admin/server.memory_limit'))->inlineLabel()
->suffix(config('panel.use_binary_prefix') ? 'MiB' : 'MB')
->hintIcon('tabler-question-mark')
->hintIconToolTip(trans('admin/server.memory_helper'))
->required()
->columnSpan(2)
->numeric()

View File

@ -36,6 +36,7 @@ return [
'disabled' => 'Disabled',
'memory' => 'Memory',
'memory_limit' => 'Memory Limit',
'memory_helper' => 'Wings will add overhead to this value when creating the container to make sure it doesn\'t starve out when using max memory.',
'disk' => 'Disk Space',
'disk_limit' => 'Disk Space Limit',
'advanced_limits' => 'Advanced Limits',