Skip to content

Commit

Permalink
fix(client): Position of min/max values in scale legend
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprdhomme committed Nov 28, 2024
1 parent f82c193 commit 5528674
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/src/components/map/legend/item/scale-legend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ const ScaleLegend = (data: ScaleLegendProps) => {
</div>
))}
{!!minMaxValues && (
<div className="flex flex-col pt-5">
<div
className={cn({
"flex flex-col": true,
"pt-5": !("" in itemsByGroup),
"pt-1": "" in itemsByGroup,
})}
>
{minMaxValues[0] !== undefined && (
<div className="relative left-1 text-xs">
<span className="relative top-px">{minMaxValues[1]}</span>
Expand Down

0 comments on commit 5528674

Please sign in to comment.