Skip to content

Conversation

t3rminalV
Copy link
Collaborator

@t3rminalV t3rminalV commented Sep 4, 2024

When creating larger seating plans, the default scale of the grid means that the plan ends up quite big.

  • Added a percentile-based scale which can scale the layout grid down (or up) to help with larger layouts.
  • Fixed background images being cut off under certain circumstances.

When creating larger seating plans, the default scale of the grid means that the plan ends up quite big.

Added a percentile-based scale which can scale the layout grid down (or up) to help with larger layouts.
In some cases, if there isnt a seat placed at the bottom of the background image, it'll get cut off either to the bottom or the right.
@t3rminalV t3rminalV changed the title Add support for scaling seating plans Seating Plan Updates Sep 4, 2024
Last fix wasnt actually the right thing. Now looking at the actual size of the background image and setting the element to that size.
Missed a page
Copy link
Owner

@mintopia mintopia left a comment

Choose a reason for hiding this comment

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

We shouldn't be fetching the image to get its size every time we render the plan. It should be determined either once and cached for a long TTL or in the backend when the image is set.

Change the image height and width to be calculated on seating plan property save instead of loaded on each page load.
@mintopia mintopia merged commit c4327ad into mintopia:develop Sep 6, 2024
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.

2 participants