diff --git a/src/components/measurements/measurement-form.tsx b/src/components/measurements/measurement-form.tsx index 40b296d82..d415d1c8c 100644 --- a/src/components/measurements/measurement-form.tsx +++ b/src/components/measurements/measurement-form.tsx @@ -12,6 +12,7 @@ import { } from "@/components/ui/dropdown-menu"; import { Input } from "@/components/ui/input"; import { DateTimeField } from "@/components/ui/date-time-field"; +import { FieldGroup } from "@/components/ui/field-group"; import { Label } from "@/components/ui/label"; import { Select, @@ -386,12 +387,9 @@ export function MeasurementForm({ return (
-
- + -
+ {isBpMode ? (
@@ -463,16 +461,16 @@ export function MeasurementForm({
) : ( -
- + -
+ )} {isGlucoseMode && ( -
- + -
+ )} -
- + - {/* v1.17.1 — surface that the timestamp is editable. The picker - already defaults to now and accepts any earlier instant; many - users never notice they can backdate a reading. */} -

- {t("measurements.timestampBackdateHint")} -

-
+ -
-
- + + } + labelAccessory={ {notes.length}/{MAX_COMMENT_LENGTH} -
+ } + > -
+ {error && (
{/* v1.8.5 (C1) — free-text note. */} -
-
- - {/* v1.11.5 — character counter so the `maxLength` cap no + + } + labelAccessory={ + /* v1.11.5 — character counter so the `maxLength` cap no longer truncates silently. Turns destructive (warns) as the - input approaches the limit. */} + input approaches the limit. */ -
+ } + >