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

feat: allow checking the container size or aspect ratio for using responsive spec #652

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

sehilyi
Copy link
Member

@sehilyi sehilyi commented Mar 10, 2022

responsiveSpec: [
  {
    // if the height of the gosling component container is less than 1,000px, change spec
    selectivity: [{ 
      measure: 'height', 
      operation: 'LT', 
      threshold: 1000, 
      target: 'container' // default: 'self'
    }],
    spec: { /* some alternative spec here */ }
  }
]

This allows defining/applying alternative specs without using responsiveSize

@sehilyi sehilyi merged commit 7555ab7 into master Mar 31, 2022
@sehilyi sehilyi deleted the sehilyi/container-size branch March 31, 2022 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant