Skip to content

Commit 98cbab5

Browse files
committed
Remove correctness spacing for inline display units
1 parent ce15536 commit 98cbab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/elements/inputs/InlineNumericEntryZone.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ export const InlineNumericEntryZone = ({width, height, questionDTO, setModified,
9191
>
9292
<DropdownToggle
9393
disabled={readonly || !noDisplayUnit}
94-
className={classNames("feedback-zone ps-2 pe-0 py-0", {"pe-4": showFeedback(unitCorrectness), "border-dark": !noDisplayUnit})}
94+
className={classNames("feedback-zone ps-2 pe-0 py-0", {"pe-4": showFeedback(unitCorrectness) && noDisplayUnit, "border-dark": !noDisplayUnit})}
9595
color={noDisplayUnit ? undefined : "white"}
9696
>
97-
<div className={showFeedback(unitCorrectness) ? "pe-4" : "pe-2"}>
97+
<div className={showFeedback(unitCorrectness) && noDisplayUnit ? "pe-4" : "pe-2"}>
9898
<Markup encoding={"latex"}>
9999
{isDefined(unit) ? wrapUnitForSelect(unit) : "Unit..."}
100100
</Markup>

0 commit comments

Comments
 (0)