Grasia / grasia-dash-components

Extending Plotly's Dash component suite for @Grasia.
MIT License
18 stars 0 forks source link

How to modify the area ratio of pictures and data in Card? #5

Open sylvoslee opened 6 years ago

sylvoslee commented 6 years ago

How to modify the area ratio of pictures and data in Card, look forward to your reply!

Akronix commented 6 years ago

Hi @sylvoslee! Thank you for reporting this issue! So you want to change the width or height css attributes to the Card component, the image contained on it and the text block inside the Card, is it?

That's not possible right now but I could certainly implement that in the very short term. My doubt would be what to do with the text area size. Right now, it takes as much space as the text occupies. It might be done to become bigger if you set a bigger size for that area but I'm not sure what to do if you set a smaller size than what the text needs. In such case, should be the text be cut off? or use as much space as the text is needing anyway?

Akronix commented 6 years ago

Hi @sylvoslee! Could you explain better your use case or clarify how would you expect the API to be in order to set the area ratio of the Card elements?