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

[BREAKING] position flavour text divider #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ndepaola
Copy link
Collaborator

@ndepaola ndepaola commented Apr 11, 2022

[BREAKING] here refers to the fact that this PR will not work with current templates - they will need to be updated with the required layer. I'll hold off on merging this until I update all templates for compatibility.

Example of automatically positioned divider:

divider

@ndepaola ndepaola force-pushed the flavour-text-divider branch from 9082087 to 15512c3 Compare April 11, 2022 08:43
@ndepaola ndepaola force-pushed the flavour-text-divider branch from 5a6d40c to 70bbd22 Compare May 1, 2022 06:09
@ndepaola ndepaola force-pushed the flavour-text-divider branch from 82ff5dc to f668735 Compare May 28, 2022 00:55
@ndepaola ndepaola force-pushed the flavour-text-divider branch from 702b550 to 8d59f30 Compare May 28, 2022 00:58
* This method is slighty imperfect because of how the shape of the text layer can affect how flavour text is positioned, but should be close enough.
*/

if (this.flavour_text.length !== "") {

Choose a reason for hiding this comment

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

Might want to test either for length if (this.flavour_text.length) or for flavour text not being empty string if (this.flavour_text !== "". As it stands now script seems to fail for cards with no flavour text.

Great work with this PR though 💪 super useful 🙏

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