-
Notifications
You must be signed in to change notification settings - Fork 44
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
New: Add negative transform to hotgraphic pin (fixes #299) #300
Conversation
Is every pin image going to need to be centered always? |
I've excluded pin images from the amend and instead only targeted pins. The proposed amend does not force pins to be centred on the hotgraphic image, I am only proposing that their transform origin is moved from top left to center. The screenshots in the issue are only for illustration purpose to show the difference. |
Yes. Is every pin image going to need to be centered always? Should this be a theme thing? Or selectable or with classes?
You acknowledge it's breaking on the issue. Please change the pr status to breaking or revise. |
Certainly makes for more consistency then the current implementation.
I personally think it should be in by default. It could be made as part of the theme and / or custom classes but, to me, that's putting obstacles in between the user and the fix.
Didn't realise it would be classified as breaking. Will update issue. |
Breaking is when you change something that requires other people to rework their stuff. There is a potential that many well placed pins, on many courses, on many hotgraphics in any number of AATs will now change. That's a lot of work created by one simple transform. |
Sort of like what Dan was saying, what if this was a new configurable option so that it doesn't break older courses?
Or if we want 'center' to be the default (which does make more sense), this could be an improvement that we implement once the migration scripts are ready. Older courses would be migrated to set this value to "top left". |
This is something I've implemented in custom themes many times so would be good to fix the issue in the plugin itself. To avoid a breaking change I'd be incline to go with @swashbucks suggestion above. |
Could ya'll approve if in agreement please? |
@guywillis, are you happy to make this a config option as per above? |
@kirsty-hames Of course. Whilst it would be nice to have the option included by default I do understand and appreciate the impact of doing so is potentially huge. |
@guywillis What was the rationale for excluding pin images? Is the transform origin already centered? |
Nothing more than a misunderstanding between pin images and tiles. I shall correct, good spot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
🎉 This PR is included in version 6.12.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes: #299
New