Skip to content

Commit

Permalink
fix: termwind styles
Browse files Browse the repository at this point in the history
  • Loading branch information
xiCO2k committed Nov 6, 2023
1 parent c98b7f6 commit e365e4e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
14 changes: 6 additions & 8 deletions src/Printers/Detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
public function print(Result $result): void
{
render(<<<'HTML'
<div class="flex mx-2 max-w-150">
<span class="text-gray">Result</span>
<span class="flex-1 ml-1 content-repeat-[―] text-gray"></span>
<div class="flex mx-2 max-w-150 text-gray">
<span>Result</span>
<span class="flex-1 ml-1 content-repeat-[―]"></span>
</div>
HTML);

Expand Down Expand Up @@ -114,9 +114,7 @@ public function print(Result $result): void
HTML);

render(<<<'HTML'
<div class="mx-2 max-w-150 text-right flex text-gray">
<span></span>
<span class="flex-1"></span>
<div class="mx-2 max-w-150 text-right text-gray">
<span>
<span class="text-red">■</span>
<span class="mx-1">Critical</span>
Expand All @@ -127,7 +125,7 @@ public function print(Result $result): void
<span class="text-green ml-1">■</span>
<span class="ml-1">Excellent</span>
</span>
</div>);
</div>
HTML);
}

Expand Down Expand Up @@ -181,7 +179,7 @@ private function twoColumnDetail(string $left, string $right): void
$right
</span>
</div>
HTML);
HTML);
}

/**
Expand Down
17 changes: 8 additions & 9 deletions src/Printers/Progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public function tail(): void
}

render(<<<HTML
<div class="flex mx-2 max-w-150">
<span class="text-gray">Stress testing <span class="text-cyan font-bold">$domain</span></span>
<span class="flex-1 ml-1 content-repeat-[―] text-gray"></span>
<span class="text-gray ml-1">$options</span>
<div class="flex mx-2 max-w-150 space-x-1 text-gray">
<span>Stress testing <span class="text-cyan font-bold">$domain</span></span>
<span class="flex-1 content-repeat-[―]"></span>
<span>$options</span>
</div>
HTML);

Expand Down Expand Up @@ -133,13 +133,12 @@ private function printCurrentPoints(array $points): void
$average = sprintf('%4.2f', $average);

render(<<<HTML
<div class="flex mx-2 max-w-150">
<span class="text-gray">
<div class="flex justify-between mx-2 max-w-150 text-gray">
<span>
<span>{$time}</span>
<span class="ml-1 text-gray">$greenDots</span>
<span class="ml-1">{$greenDots}</span>
</span>
<span class="flex-1"></span>
<span class="text-gray ml-1">{$average}ms</span>
<span class="ml-1">{$average}ms</span>
</div>
HTML);
}
Expand Down

0 comments on commit e365e4e

Please sign in to comment.