Add customizable guardrails into the edit slide canvas #45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This tries to mitigate the need for a completely different canvas size which might have been the intention of #31
I first implemented that, as our event has slightly different resolutions for the projectors and the TVs used as info screens.
This would however result in slides not being really reusable, as they are only saved in the rendered resolution of the last save. So editing it on one screen might end up breaking the other one and vice versa.
So here is an easy way to support multiple resolutions by adding the ability to customize guardrails that will be added into the editing cavas. As a default I added the existing 4:3 ones to not break any existing uses that are not updating their .env file with the new one. So now any slides can be created with the guard lines in mind to have it look pretty on all of our needed resolutions.
Please let me know if I should adjust something. The json based env variable isn't necessarily the best way of handling it, but keeping all config in one file is still the easiest way.