Skip to content

Commit

Permalink
Use HorizontalKeyValue instead of VerticalKeyValue
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoxhaa committed Aug 25, 2024
1 parent 9916649 commit 0a65dd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/Kubernetes/Web/NodeListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
use ipl\Html\HtmlElement;
use ipl\Html\Text;
use ipl\I18n\Translation;
use ipl\Web\Widget\HorizontalKeyValue;
use ipl\Web\Widget\Icon;
use ipl\Web\Widget\Link;
use ipl\Web\Widget\StateBall;
use ipl\Web\Widget\VerticalKeyValue;

class NodeListItem extends BaseListItem
{
Expand Down Expand Up @@ -45,12 +45,12 @@ protected function assembleMain(BaseHtmlElement $main): void
protected function assembleFooter(BaseHtmlElement $footer): void
{
$footer->addHtml(
new VerticalKeyValue($this->translate('CIDR'), $this->item->pod_cidr),
new VerticalKeyValue(
new HorizontalKeyValue($this->translate('CIDR'), $this->item->pod_cidr),
new HorizontalKeyValue(
$this->translate('CPU Capacity'),
sprintf($this->translate('%d cores', 'number of CPU cores'), $this->item->cpu_allocatable / 1000)
),
new VerticalKeyValue(
new HorizontalKeyValue(
$this->translate('Memory Capacity'),
Format::bytes($this->item->memory_allocatable / 1000)
)
Expand Down

0 comments on commit 0a65dd3

Please sign in to comment.