mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
Keep the unit and the time whole when the phone meta line wraps
'vor 10 Stunden' broke across two lines; the unit and the time now wrap as units, the source badge after them.
This commit is contained in:
1 parent
0bcf465e38
commit
a5e947ce97
1 file changed
+12
-3
@@ -1535,7 +1535,10 @@ export function MeasurementList({
|
||||
the row's controls; it leads the meta line
|
||||
instead. Sleep reads as a duration. */}
|
||||
{isSleep ? null : (
|
||||
<span data-slot="measurement-row-unit">
|
||||
<span
|
||||
data-slot="measurement-row-unit"
|
||||
className="whitespace-nowrap"
|
||||
>
|
||||
{measurementUnitLabel(
|
||||
m.type,
|
||||
isGrouped ? m.unit : rowDisplay(m).unit,
|
||||
@@ -1545,11 +1548,17 @@ export function MeasurementList({
|
||||
</span>
|
||||
)}
|
||||
{m.dayKey !== undefined ? (
|
||||
<DayLink date={m.dayKey}>
|
||||
<DayLink
|
||||
date={m.dayKey}
|
||||
className="whitespace-nowrap"
|
||||
>
|
||||
{formatDateOrRelative(m.measuredAt, t)}
|
||||
</DayLink>
|
||||
) : (
|
||||
<DayLinkAt at={m.measuredAt}>
|
||||
<DayLinkAt
|
||||
at={m.measuredAt}
|
||||
className="whitespace-nowrap"
|
||||
>
|
||||
{formatDateOrRelative(m.measuredAt, t)}
|
||||
</DayLinkAt>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user