vtex-apps / product-summary

VTEX Product Summary app
11 stars 52 forks source link

Product summary fixed max-width #372

Open ghost opened 1 year ago

ghost commented 1 year ago

https://github.com/vtex-apps/product-summary/blob/b5cb5a4eae516a4b8a9748421a648c4ef4cc477d/react/ProductSummaryCustom.tsx#L24

In the product summary, a variable is hardcoded to 300, making the maximum width 300px with inline css. I need a slightly bigger shelf and to do that the only option is to use the !important flag to overwrite. Ideally, the value of this variable would be set through props in the component or just remove the inline style and pass it to a css file.