UI bug: Misaligned checkboxes on Developer Settings tab
djanda97 opened this issue · 3 comments
Describe the bug
The checkboxes on the Webhook URL
modal are not aligned
To Reproduce
Steps to reproduce the behavior:
- Start the dev server by executing
./scripts/dev.sh
- Once the dev server is running, navigate to http://localhost:8000/settings/developer-settings
- Click the
Add URL
button near theWebhooks
section of the page - Once the
Webhook URL
modal appears, notice that the checkboxes are not aligned
Expected behavior
The checkboxes should be vertically and horizontally aligned
Screenshots
Desktop
- OS: MacOS 13.2.1
- Browser: Firefox
- Version: 110.0
- Browser: Safari
- Version: 16.3
@djanda97 If you don't pick this up, I have another person who can fix it at the start of the week!
@mnida I don't have much experience with CSS, but I'd like to try fixing this one!
It appears that the Checkbox
component provided by the antd
library is implicitly applying an 8px left margin to the generated HTML elements:
Strangely, the 8px left margin only affects the last three checkboxes.
I was able to get the checkboxes aligned by setting the style prop of the Checkbox
components to use a 0px left margin.