Skip to content

Commit bd45f7a

Browse files
committed
style(energy): tighten energy-flow card height
Crop the flow SVG viewBox to its content (~120px of blank vertical space removed) and align card padding with the other energy cards.
1 parent dea14f2 commit bd45f7a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎frontend/src/components/Energy/Flow.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const Flow: React.FC<{ className?: string }> = ({ className }) => {
123123
backgroundColor: theme.colors.background.main,
124124
boxShadow: theme.shadows.main,
125125
borderRadius: theme.border.radius,
126-
padding: "1.5em",
126+
padding: "1.25em 1.5em",
127127
}}
128128
>
129129
<div
@@ -158,7 +158,7 @@ const Flow: React.FC<{ className?: string }> = ({ className }) => {
158158
</div>
159159
</div>
160160
<svg
161-
viewBox={isMobile ? "80 20 640 425" : "0 0 800 470"}
161+
viewBox={isMobile ? "80 28 640 360" : "0 28 800 364"}
162162
css={{ width: "100%", height: "auto" }}
163163
>
164164
{/* PV → Inverter */}

0 commit comments

Comments
 (0)