Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(components): fix Deck component viewBox #1807

Merged
merged 1 commit into from
Jul 3, 2018

Conversation

IanLondon
Copy link
Contributor

overview

Deck component SVG had a viewBox calculated from slot width, height, and spacing. Since the deck is actually bigger than that, this PR just uses hard-coded height and width to set the viewBox to the actual bounds of the Deck SVG.

changelog

  • fix Deck SVG viewBox
  • update Deck styles in PD
  • update DeckMap styles in Run App

review requests

  • PD Deck looks OK, not clipped/uncentered
  • Run App deck(s) look OK, not clipped/uncentered
  • No leftover styles that were compensating for bad viewBox?

- fix Deck SVG viewBox
- update Deck styles in PD
- update DeckMap styles in Run App
@IanLondon IanLondon added app Affects the `app` project fix PR fixes a bug protocol designer Affects the `protocol-designer` project components Affects the `components` project labels Jul 3, 2018
@IanLondon IanLondon requested a review from mcous July 3, 2018 14:22
@codecov
Copy link

codecov bot commented Jul 3, 2018

Codecov Report

Merging #1807 into edge will decrease coverage by 0.04%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge    #1807      +/-   ##
==========================================
- Coverage   33.98%   33.94%   -0.05%     
==========================================
  Files         370      370              
  Lines        6055     6054       -1     
==========================================
- Hits         2058     2055       -3     
- Misses       3997     3999       +2
Impacted Files Coverage Δ
components/src/deck/constants.js 100% <ø> (ø) ⬆️
components/src/deck/Deck.js 0% <ø> (-12.5%) ⬇️
protocol-designer/src/constants.js 42.85% <ø> (ø) ⬆️
...ocol-designer/src/containers/ConnectedDeckSetup.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1183da...81dde5b. Read the comment docs.

Copy link
Contributor

@mcous mcous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correctly positioned in the app!

📐

@IanLondon IanLondon merged commit bff921f into edge Jul 3, 2018
@IanLondon IanLondon deleted the components_fix-deck-viewbox branch July 3, 2018 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Affects the `app` project components Affects the `components` project fix PR fixes a bug protocol designer Affects the `protocol-designer` project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants