@bytebrand/fe-ui-core 4.1.186 → 4.1.187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +3 -2
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +4 -4
- package/source/components/VehicleSmallCard/VehicleSmallCard.styl +3 -3
package/package.json
CHANGED
package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
.priceItemBuy
|
|
54
54
|
border-top: 1px solid rgba(76, 78, 100, 0.12);
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
+media-tablet-landscape-up()
|
|
57
57
|
transform: translateX(-6px);
|
|
58
58
|
|
|
59
59
|
.priceItemCategory
|
|
@@ -121,7 +121,8 @@
|
|
|
121
121
|
display: inline-flex;
|
|
122
122
|
|
|
123
123
|
.priceMtl
|
|
124
|
-
|
|
124
|
+
&.priceMtlActive
|
|
125
|
+
transform: translateX(6px);
|
|
125
126
|
|
|
126
127
|
.priceNewBlock
|
|
127
128
|
flex-shrink: 0;
|
package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx
CHANGED
|
@@ -137,7 +137,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
|
|
|
137
137
|
numbersAfterDot={0}
|
|
138
138
|
price={perMonthCurrent}
|
|
139
139
|
postfix={postfix}
|
|
140
|
-
className={styles.priceMtl}
|
|
140
|
+
className={classnames(styles.priceMtl, { [styles.priceMtlActive]: !!priceSub})}
|
|
141
141
|
isNew={isStrikeShown}
|
|
142
142
|
size='semimedium'
|
|
143
143
|
sub={priceSub}
|
|
@@ -140,7 +140,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
140
140
|
title: t('vehicleProps:title.financing'),
|
|
141
141
|
prefixOldPrice: vehicleComponentName === 'search' && !isMobileOnly && t('vehicleProps:value.prefixOldPrice'),
|
|
142
142
|
postfix: '3',
|
|
143
|
-
priceSub: t('vehicleProps:value.priceSub'),
|
|
143
|
+
priceSub: isMobileOnly ? null : t('vehicleProps:value.priceSub'),
|
|
144
144
|
tooltipDescription: !combineRefAlternative && t('vehicleProps:title.financingDescription')
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -150,7 +150,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
150
150
|
postfix: '1,3',
|
|
151
151
|
isPriceDisable: !isLeasingActive,
|
|
152
152
|
title: t('vehicleProps:title.leasing'),
|
|
153
|
-
priceSub: t('vehicleProps:value.priceSub'),
|
|
153
|
+
priceSub: isMobileOnly ? null : t('vehicleProps:value.priceSub'),
|
|
154
154
|
tooltipDescription: !combineRefAlternative && t('vehicleProps:title.leasingDescription')
|
|
155
155
|
}
|
|
156
156
|
];
|
|
@@ -266,7 +266,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
266
266
|
{vehicleComponentName !== 'favorite' && vehicleComponentName !== 'search' && (
|
|
267
267
|
<span className={vehiclePriceTitleClassName}>{t('vehicleProps:title.monthlyFrom')}</span>
|
|
268
268
|
)}
|
|
269
|
-
{
|
|
269
|
+
{isMobileOnly && !showCompareCheckboxes && (
|
|
270
270
|
<span className={vehiclePriceTitleClassName}>{t('vehicleProps:title.monthlyFrom')}</span>
|
|
271
271
|
)}
|
|
272
272
|
{ListPrices}
|
|
@@ -287,7 +287,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
287
287
|
</Button>
|
|
288
288
|
) : null}
|
|
289
289
|
{showOfferBtn ? (
|
|
290
|
-
<Button
|
|
290
|
+
<Button variant={vehicleComponentName === 'recently' ? 'outlined' : 'contained'} className={buttonClassNames} onClick={this.onDetailsClick}>{t('vehicleProps:title.toOffer')}</Button>
|
|
291
291
|
) : ''}
|
|
292
292
|
</section>
|
|
293
293
|
);
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
margin-bottom: 5px;
|
|
59
59
|
padding-bottom: 8px;
|
|
60
60
|
+media-tablet-landscape-up()
|
|
61
|
-
height: 252px;
|
|
61
|
+
min-height: 252px;
|
|
62
62
|
box-sizing: border-box;
|
|
63
63
|
border: 1px solid rgba(76, 78, 100, 0.12);
|
|
64
64
|
padding: 10px;
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
& [class*='withStats__topWrapper']
|
|
102
102
|
left: 16px;
|
|
103
103
|
right: 16px;
|
|
104
|
-
|
|
104
|
+
|
|
105
105
|
& [class*='withStats__controls']
|
|
106
106
|
padding: 0 16px;
|
|
107
107
|
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
& [class*='withStats__topWrapper']
|
|
127
127
|
left: 16px;
|
|
128
128
|
right: 16px;
|
|
129
|
-
|
|
129
|
+
|
|
130
130
|
& [class*='withStats__controls']
|
|
131
131
|
padding: 0 16px;
|
|
132
132
|
|