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

Add aspect ratio to frontend collection config #27621

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Georges-GNM
Copy link
Contributor

@Georges-GNM Georges-GNM commented Nov 19, 2024

What is the value of this and can you measure success?

Part of this fairground ticket

Requires this DCR PR, as well as this facia-scala-client one which adds the logic to get the aspect ratio from the collection type. Once the facia scala client PR has been approved and the update released, I'll update this branch with the latest version of the library.

Supports aspectRatio as an optional property in the frontend collection config.

Deployed to code and, after relaunching the fairground front, checked we could see the value appear in the pressed json:
image

With the DCR PR, I could also see the expected value come through (rendered here through a div inserted on the front with the following: <div>{collection.collectionType}, aspect ratio: {collection.aspectRatio}</div>

image

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

Successfully merging this pull request may close these issues.

2 participants