chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
33 stars 2 forks source link

Don't show extra border when no config is available #221

Closed andrewortwein closed 6 months ago

andrewortwein commented 6 months ago

The top "Configuration" section has a bottom border on it and the bottom "Uninstall" section has a top border on it, which is fine as long as there is something in the middle. This changes it so that the last item in the "middle" will have a bottom border, removing the top border from the "Uninstall" section. That way, when the middle is empty, there is no extra border.

I added a couple stories to make sure nothing changed when a config is actually present. None of the existing stories were capturing the bottom of the config.

Before:

image

After:

image

📦 Published PR as canary version: 1.2.20--canary.221.e9f4fdf.0
:sparkles: Test out this PR locally via: ```bash npm install @chromatic-com/storybook@1.2.20--canary.221.e9f4fdf.0 # or yarn add @chromatic-com/storybook@1.2.20--canary.221.e9f4fdf.0 ```