Why is VPHero image shifted by 32 pixels? #4056
pavelhoral
started this conversation in
General
Replies: 1 comment
-
/cc @kiaking |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any specific reason for the VPHero image to have
transform: translate(-32px, -32px);
?Ref: https://github.com/vuejs/vitepress/blob/2bc0d39d5089841986f0988fc9cfe15533d3a0c6/src/client/theme-default/components/VPHero.vue#L280C5-L280C40
This style can break the visual when the hero image is as wide as the container because it can collide with the text.
Beta Was this translation helpful? Give feedback.
All reactions