Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix text size rendering expectation results #1383

Merged
merged 1 commit into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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