Skip to content

Commit

Permalink
Align phased data left, give value blocks fixed min width.
Browse files Browse the repository at this point in the history
  • Loading branch information
fwaalkens committed Oct 23, 2023
1 parent 54e1533 commit 3beb407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/Marine2/components/ui/ValueBar/ValueBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface Props {

const ValueBar = ({ values, prefix, forcePowerUnit, status }: Props) => (
<div className="flex border-t-2 border-victron-gray dark:border-victron-gray-200 px-2">
{prefix && <div className="w-[35px] bg-red-700 mr-4 text-victron-darkGray dark:text-victron-gray-500">{prefix}</div>}
{prefix && <div className="mr-3 md:mr-6 text-victron-darkGray dark:text-victron-gray-500 tabular-nums">{prefix}</div>}
<div className="flex justify-between grow">
{values.map((v, id) => (
<ValueWithUnit
Expand All @@ -21,7 +21,7 @@ const ValueBar = ({ values, prefix, forcePowerUnit, status }: Props) => (
unit={v.unit}
hideDecimal={v.hideDecimal}
forcePowerUnit={forcePowerUnit}
className="min-w-[130px] bg-red-700 text-black dark:text-victron-gray-600 text-right"
className="md:min-w-[125px] text-black dark:text-victron-gray-600 tabular-nums"
status={status}
/>
))}
Expand Down

0 comments on commit 3beb407

Please sign in to comment.