Skip to main content
Question

Maintaining size/padding of one element when another is adjusted

  • September 30, 2025
  • 0 replies
  • 8 views

Angela Liu

I’ve created components for an image, badge, and icon. I want to the image size to be adjustable, without it affecting the size or position of the badge/icon. Right now, if I change the image size, the badge/icon get bigger and their positioning is adjusted (eg. 16px away from corner becomes 20px). How could I stop this from happening?