Feel free to totally ignore or just reference this one since I made some controversial changes, but the styling of the surveys on smaller to bigger browser windows led me to playing with css flexbox (which has pretty good cross browser coverage: https://caniuse.com/flexbox) and css grid (https://caniuse.com/?search=grid)
As you'll see in the images below I added a bunch of custom divs instead of using shiny's bootstrap layout so we can have the select dropdown be even with the trash and require checkbox. I made all my edits in a css file and not scss and would be happy to talk through all the changes I made! I also used an @media to change the grid when the input is on smaller browsers.
Lastly you'll noticed I went ahead and generalized the JS script --- essentially in surveyInput.R I changed all your static ids into paste0(inputId, "_STATICID") and then in JS I do the same by getting the ID of the inputput binding using el.id .....does that make sense?
Feel free to totally ignore or just reference this one since I made some controversial changes, but the styling of the surveys on smaller to bigger browser windows led me to playing with css flexbox (which has pretty good cross browser coverage: https://caniuse.com/flexbox) and css grid (https://caniuse.com/?search=grid)
As you'll see in the images below I added a bunch of custom divs instead of using shiny's bootstrap layout so we can have the select dropdown be even with the trash and require checkbox. I made all my edits in a css file and not scss and would be happy to talk through all the changes I made! I also used an
@media
to change the grid when the input is on smaller browsers.Lastly you'll noticed I went ahead and generalized the JS script --- essentially in surveyInput.R I changed all your static ids into
paste0(inputId, "_STATICID")
and then in JS I do the same by getting the ID of the inputput binding usingel.id
.....does that make sense?Let me know what you think!