Spaces:
Running
Running
fix: add bottom padding to map legend scrollable container
Browse files
src/components/MapLegend.tsx
CHANGED
|
@@ -148,7 +148,7 @@ export const MapLegend: React.FC<MapLegendProps> = ({ parameter, values, precipi
|
|
| 148 |
<div className="font-bold text-slate-300 md:text-slate-700 text-center text-xs md:text-sm border-b border-white/20 md:border-slate-200 pb-1.5 md:pb-2 mb-1.5 md:mb-2 shrink-0">
|
| 149 |
{unit}
|
| 150 |
</div>
|
| 151 |
-
<div className="flex flex-col overflow-y-auto overflow-x-hidden min-h-0 pr-6 md:pr-7">
|
| 152 |
{stops.map((stop: LegendStop) => (
|
| 153 |
<div key={`${stop.val}`} className={`relative ${isTemperature ? 'h-[9px] md:h-[11px]' : 'h-[14px] md:h-[16px]'} shrink-0`}>
|
| 154 |
<div
|
|
|
|
| 148 |
<div className="font-bold text-slate-300 md:text-slate-700 text-center text-xs md:text-sm border-b border-white/20 md:border-slate-200 pb-1.5 md:pb-2 mb-1.5 md:mb-2 shrink-0">
|
| 149 |
{unit}
|
| 150 |
</div>
|
| 151 |
+
<div className="flex flex-col overflow-y-auto overflow-x-hidden min-h-0 pr-6 md:pr-7 pb-2">
|
| 152 |
{stops.map((stop: LegendStop) => (
|
| 153 |
<div key={`${stop.val}`} className={`relative ${isTemperature ? 'h-[9px] md:h-[11px]' : 'h-[14px] md:h-[16px]'} shrink-0`}>
|
| 154 |
<div
|