torchbox / django-pattern-library

UI pattern libraries for Django templates
https://torchbox.github.io/django-pattern-library/
BSD 3-Clause "New" or "Revised" License
360 stars 44 forks source link

Width is not calculated correctly for the resize buttons #226

Closed jkevingutierrez closed 1 year ago

jkevingutierrez commented 1 year ago

Found a bug? Please fill out the sections below. 👍

Issue Summary

The sizes defined here are not being applied correctly. The width is always 2px smaller than the real value

Steps to Reproduce

  1. Set up Django Pattern Library
  2. Click on the resize buttons
  3. See how the width is always 2px smaller than the real value

For example, when I click the S button it should resize to 320px but it is really resizing to 318px

image

Same for other sizes:

image image

Technical details