Skip to content

Commit

Permalink
Fix text size rendering expectation results
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed May 10, 2023
1 parent e0bfb5f commit 77aa0d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function ExpectationsResults({
<div className="mt-3 text-red-500">{errorMessage}</div>
) : (
<ListView
className="mt-3"
className="mt-3 text-sm"
titleClassName="text-sm"
orientation="horizontal"
data={expectationsEvaluations}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ function ExpectedValues({ expectedValues = [], isError = false }) {
<div className="w-full my-4 mr-4 bg-white shadow rounded-lg px-8 py-4">
<div className="text-lg font-bold">Values</div>
{isError ? (
<div className="mt-3 text-red-500">Expected Values unavailable</div>
<div className="mt-3 text-red-500 text-sm">
Expected Values unavailable
</div>
) : (
<ListView
className="mt-3"
className="mt-3 text-sm"
titleClassName="text-sm"
orientation="horizontal"
data={expectedValues.map(({ name, value }) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const gatheredFactsToListView = (gatheredFacts) =>
type ? (
<span className="text-red-500">{message}</span>
) : (
<FactValue className="text-sm" data={factValue} />
<FactValue data={factValue} />
),
}));

Expand All @@ -22,12 +22,12 @@ function GatheredFacts({ isTargetHost = true, gatheredFacts = [] }) {
<div className="text-lg font-bold">Facts</div>

{gatheredFacts.length === 0 && (
<div className="mt-3 text-red-500">No facts were gathered</div>
<div className="mt-3 text-sm text-red-500">No facts were gathered</div>
)}

{isTargetHost && (
<ListView
className="grid-flow-row mt-3"
className="grid-flow-row mt-3 text-sm"
titleClassName="text-sm"
orientation="horizontal"
data={gatheredFactsToListView(gatheredFacts)}
Expand Down

0 comments on commit 77aa0d3

Please sign in to comment.