Skip to content

Conversation

@mevionfamos
Copy link
Contributor

@mevionfamos mevionfamos commented Sep 3, 2025

Description

This PR fixes the mini chart padding and aligns it with the original design in the first commit.

The second commit applies this behavior (inset of labels) more broadly in order to also fix the padding on the details page. While this fixes the padding, it makes the existing problems with the label misalignments and general spacing much more prominent so these topics should be further addressed before merging. (problems are documented in #348 )

Additionally, the small bug described in #370 also hasn't been

Related Issues

fixes #361

relate but not adressed:

Testing Performed

  • Tested with the following Browsers: Brave
  • Tested on the following devices: Macbook
  • Verified functionality: Mini-chart padding, line charts still work
  • Storybook updated
  • Automated tests added

Testing/Reproduction Steps

  1. Navigate to /map?entity=municipality&activeId=1631
  2. Observe the padding matches the design

Screenshots

image

Checklist

  • I have tested my changes thoroughly
  • I have updated the documentation as needed
  • My commits use clear, descriptive messages
  • My PR includes only related changes
  • I have marked this PR with the appropriate label
  • I have added an entry in the changelog
  • I have run locales:extract if I changed any locale string

Notes for Reviewers

Since we do not show this panel for the september release, we can have a look at this when we prepare for the sunshine testing phase.

We should either address the issues related to the mini- and line charts mentioned above in this PR or drop the second commit.

mini-prop is passed all the way to useLineState in order to control the layout.
This resolves the padding inconsistency on all line charts so the mini-prop is no longer needed.
@vercel
Copy link

vercel bot commented Sep 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
elcom-electricity-price-website Ready Ready Preview Comment Sep 3, 2025 8:22am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request sunshine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Padding of mini chart

2 participants