Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Product quantity style fix (#424)

Dave Earleyd7b2fb49db13
diff --git a/frontend/src/components/routes/product-widget/SelectProducts/index.tsx b/frontend/src/components/routes/product-widget/SelectProducts/index.tsx
index c22a2c60c..8f6d74aa6 100644
--- a/frontend/src/components/routes/product-widget/SelectProducts/index.tsx
+++ b/frontend/src/components/routes/product-widget/SelectProducts/index.tsx
@@ -253,16 +253,16 @@ const SelectProducts = (props: SelectProductsProps) => {
let productIndex = 0;
return (
- (<div className={'hi-product-widget-container'}
- ref={resizeRef}
- style={{
- '--widget-background-color': props.colors?.background,
- '--widget-primary-color': props.colors?.primary,
- '--widget-primary-text-color': props.colors?.primaryText,
- '--widget-secondary-color': props.colors?.secondary,
- '--widget-secondary-text-color': props.colors?.secondaryText,
- '--widget-padding': props?.padding,
- } as React.CSSProperties}>
+ <div className={'hi-product-widget-container'}
+ ref={resizeRef}
+ style={{
+ '--widget-background-color': props.colors?.background,
+ '--widget-primary-color': props.colors?.primary,
+ '--widget-primary-text-color': props.colors?.primaryText,
+ '--widget-secondary-color': props.colors?.secondary,
+ '--widget-secondary-text-color': props.colors?.secondaryText,
+ '--widget-padding': props?.padding,
+ } as React.CSSProperties}>
{!productAreAvailable && (
<div className={classNames(['hi-no-products'])}>
<p className={classNames(['hi-no-products-message'])}>
@@ -497,7 +497,7 @@ const SelectProducts = (props: SelectProductsProps) => {
<PoweredByFooter style={{
'color': props.colors?.primaryText || '#000',
}}/>
- </div>)
+ </div>
);
}
diff --git a/frontend/src/styles/widget/default.scss b/frontend/src/styles/widget/default.scss
index bf8d1c129..1d23ae891 100644
--- a/frontend/src/styles/widget/default.scss
+++ b/frontend/src/styles/widget/default.scss
@@ -51,6 +51,7 @@
.hi-product-title-metadata {
margin-left: 5px;
font-weight: normal;
+ display: flex;
}
.hi-product-collapse-arrow {