mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-20 02:32:37 +01:00
Fix LTD catalog widget placement
This commit is contained in:
parent
45037875fb
commit
0e44858e1d
@ -37,9 +37,9 @@ export const CatalogLayoutBadgeDisplayView: FC<CatalogLayoutProps> = props =>
|
|||||||
<>
|
<>
|
||||||
<Base position="relative" overflow="hidden">
|
<Base position="relative" overflow="hidden">
|
||||||
<CatalogViewProductWidgetView />
|
<CatalogViewProductWidgetView />
|
||||||
<CatalogLimitedItemWidgetView fullWidth position="absolute" className="top-1" />
|
|
||||||
</Base>
|
</Base>
|
||||||
<Column grow gap={ 1 }>
|
<Column grow gap={ 1 }>
|
||||||
|
<CatalogLimitedItemWidgetView fullWidth />
|
||||||
<Text grow truncate>{ currentOffer.localizationName }</Text>
|
<Text grow truncate>{ currentOffer.localizationName }</Text>
|
||||||
<Flex justifyContent="end">
|
<Flex justifyContent="end">
|
||||||
<CatalogTotalPriceWidget alignItems="end" />
|
<CatalogTotalPriceWidget alignItems="end" />
|
||||||
|
@ -152,7 +152,6 @@ export const CatalogLayoutColorGroupingView : FC<CatalogLayoutColorGroupViewProp
|
|||||||
<>
|
<>
|
||||||
<Base position="relative" overflow="hidden">
|
<Base position="relative" overflow="hidden">
|
||||||
<CatalogViewProductWidgetView />
|
<CatalogViewProductWidgetView />
|
||||||
<CatalogLimitedItemWidgetView fullWidth position="absolute" className="top-1" />
|
|
||||||
<CatalogAddOnBadgeWidgetView position="absolute" className="bg-muted rounded bottom-1 end-1" />
|
<CatalogAddOnBadgeWidgetView position="absolute" className="bg-muted rounded bottom-1 end-1" />
|
||||||
{ currentOffer.product.furnitureData.hasIndexedColor &&
|
{ currentOffer.product.furnitureData.hasIndexedColor &&
|
||||||
<Button position="absolute" className="bottom-1 start-1" onClick={ event =>setColorsShowing(prev => !prev) }>
|
<Button position="absolute" className="bottom-1 start-1" onClick={ event =>setColorsShowing(prev => !prev) }>
|
||||||
@ -160,6 +159,7 @@ export const CatalogLayoutColorGroupingView : FC<CatalogLayoutColorGroupViewProp
|
|||||||
</Button> }
|
</Button> }
|
||||||
</Base>
|
</Base>
|
||||||
<Column grow gap={ 1 }>
|
<Column grow gap={ 1 }>
|
||||||
|
<CatalogLimitedItemWidgetView fullWidth />
|
||||||
<Text grow truncate>{ currentOffer.localizationName }</Text>
|
<Text grow truncate>{ currentOffer.localizationName }</Text>
|
||||||
<Flex justifyContent="between">
|
<Flex justifyContent="between">
|
||||||
<Column gap={ 1 }>
|
<Column gap={ 1 }>
|
||||||
|
@ -38,12 +38,12 @@ export const CatalogLayoutDefaultView: FC<CatalogLayoutProps> = props =>
|
|||||||
{ (currentOffer.product.productType !== ProductTypeEnum.BADGE) &&
|
{ (currentOffer.product.productType !== ProductTypeEnum.BADGE) &&
|
||||||
<>
|
<>
|
||||||
<CatalogViewProductWidgetView />
|
<CatalogViewProductWidgetView />
|
||||||
<CatalogLimitedItemWidgetView fullWidth position="absolute" className="top-1" />
|
|
||||||
<CatalogAddOnBadgeWidgetView className="bg-muted rounded bottom-1 end-1" />
|
<CatalogAddOnBadgeWidgetView className="bg-muted rounded bottom-1 end-1" />
|
||||||
</> }
|
</> }
|
||||||
{ (currentOffer.product.productType === ProductTypeEnum.BADGE) && <CatalogAddOnBadgeWidgetView className="scale-2" /> }
|
{ (currentOffer.product.productType === ProductTypeEnum.BADGE) && <CatalogAddOnBadgeWidgetView className="scale-2" /> }
|
||||||
</Flex>
|
</Flex>
|
||||||
<Column grow gap={ 1 }>
|
<Column grow gap={ 1 }>
|
||||||
|
<CatalogLimitedItemWidgetView fullWidth />
|
||||||
<Text grow truncate>{ currentOffer.localizationName }</Text>
|
<Text grow truncate>{ currentOffer.localizationName }</Text>
|
||||||
<Flex justifyContent="between">
|
<Flex justifyContent="between">
|
||||||
<Column gap={ 1 }>
|
<Column gap={ 1 }>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user