Dinir / mini-padder

simple and clear input overlay for your gamepads and joysticks
https://dinir.github.io/mini-padder/
ISC License
67 stars 6 forks source link

Wrong margin between gamepad areas #22

Open Dinir opened 1 year ago

Dinir commented 1 year ago

Describe the bug It was meant to be 8px but was not properly set with the right attributes.

Expected behavior It should be set with the right attributes to be 8px.

Browser OBS 27.2.4


This is a temporary patch I made for myself, and I never got time to properly apply these changes into the stylesheets. Rather than keeping it by myself, I decided to share it until I get time to make a proper commit one day.

Paste this css into OBS Browser's Custom CSS. I think this set the margin to 4px as I was planning to change it. It's been ages.

#canvas-container[data-width='2'] > div:nth-child(2n-1) {margin-right: 4px;}
#canvas-container[data-width='2'] > div:nth-child(2n) {margin-right: -1px;}
#canvas-container[data-width='3'] > div {margin-right: 4px;}
#canvas-container[data-width='3'] > div:nth-child(2) {margin-right: 3px;}
#canvas-container[data-width='3'] > div:last-child {margin-right: -1px;}