daattali / colourpicker

🎨 A colour picker tool for Shiny and for selecting colours in plots (in R)
https://daattali.com/shiny/colourInput/
Other
215 stars 28 forks source link

Put colourInput() to the front #57

Closed gaospecial closed 8 months ago

gaospecial commented 8 months ago

Dear developer, I have an issue of the display of color picker in Shiny app (https://bio-spring.shinyapps.io/ggVennDiagram/). When I open the color palette, it is masked by the main card.

image

I tried to fix this by change the CSS style of the popup menu. But it doesn't work.

Could you give me any suggestions?

daattali commented 8 months ago

It looks like this isn't an issue with the colourpicker, it's the sidebar of that page. Anything you place in that sidebar that goes beyond the right side will just cause a horizontal scrollbar. You can see in my screenshot:

image

The author of that shiny app can try to fix it by playing with the sidebar's css, but I think the better solution is to make the colour input wider (it's very short right now), which would let the popup box be more to the left