@bytebrand/fe-ui-core 4.2.78 → 4.2.80
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/OfferDetailedSection/partials/PanelConfig.styl +0 -4
- package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.styl +4 -1
- package/source/components/OfferPanel/OfferPanel.styl +2 -4
- package/source/components/_common/VehicleSlider/VehicleSliderForSRL.tsx +10 -2
package/package.json
CHANGED
|
@@ -73,6 +73,9 @@
|
|
|
73
73
|
.labelContent
|
|
74
74
|
flex: 1 1 auto
|
|
75
75
|
color: $grey-3;
|
|
76
|
+
@media (min-width: 990px) and (max-width: 1112px)
|
|
77
|
+
max-width: 230px
|
|
78
|
+
padding-right: 10px !important;
|
|
76
79
|
|
|
77
80
|
.icon
|
|
78
81
|
display: block
|
|
@@ -117,4 +120,4 @@
|
|
|
117
120
|
font-size: 12px;
|
|
118
121
|
|
|
119
122
|
.hidePlus
|
|
120
|
-
display: inline-block
|
|
123
|
+
display: inline-block
|
|
@@ -167,13 +167,14 @@
|
|
|
167
167
|
[class*='MuiFormControlLabel-root']
|
|
168
168
|
height: 20px
|
|
169
169
|
min-height: 0
|
|
170
|
-
margin-left:0
|
|
171
170
|
.labelText
|
|
172
171
|
font-size: 12px;
|
|
173
172
|
font-weight: normal;
|
|
174
173
|
|
|
175
174
|
[class*='labelContent']
|
|
176
175
|
font-size: 12px
|
|
176
|
+
+media-phone-up()
|
|
177
|
+
padding-right: 62px;
|
|
177
178
|
|
|
178
179
|
|
|
179
180
|
.checkBoxGroup
|
|
@@ -189,6 +190,3 @@
|
|
|
189
190
|
margin: 0
|
|
190
191
|
justify-content: space-between
|
|
191
192
|
width: 100%
|
|
192
|
-
|
|
193
|
-
[class*='MuiIconButton-root']
|
|
194
|
-
padding:5px!important
|
|
@@ -33,6 +33,7 @@ const VehicleSliderForSRL: React.FC<IVehicleSliderForSRLProps> = ({
|
|
|
33
33
|
}: IVehicleSliderForSRLProps) => {
|
|
34
34
|
const [noImagesLoaded, setNoImagesLoaded] = React.useState<boolean>(false);
|
|
35
35
|
const [activeSlide, setActiveSlide] = React.useState<number>(0);
|
|
36
|
+
const [entered, setEntered] = React.useState(false);
|
|
36
37
|
|
|
37
38
|
const beforeChange = () => {
|
|
38
39
|
|
|
@@ -50,6 +51,13 @@ const VehicleSliderForSRL: React.FC<IVehicleSliderForSRLProps> = ({
|
|
|
50
51
|
});
|
|
51
52
|
};
|
|
52
53
|
|
|
54
|
+
const handleMouseEnter = () => {
|
|
55
|
+
if (!entered) {
|
|
56
|
+
setEntered(true);
|
|
57
|
+
beforeChange();
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
53
61
|
const onHandleSlideChange = (index: number): void => {
|
|
54
62
|
setActiveSlide(index);
|
|
55
63
|
onSlideChange(index);
|
|
@@ -136,8 +144,8 @@ const VehicleSliderForSRL: React.FC<IVehicleSliderForSRLProps> = ({
|
|
|
136
144
|
};
|
|
137
145
|
|
|
138
146
|
return (
|
|
139
|
-
<div className={styles.wrapper} onMouseEnter={
|
|
140
|
-
<Slider {...settings}>{renderSliderImages()}</Slider>
|
|
147
|
+
<div className={styles.wrapper} onMouseEnter={handleMouseEnter}>
|
|
148
|
+
<Slider {...settings} >{renderSliderImages()}</Slider>
|
|
141
149
|
</div>
|
|
142
150
|
);
|
|
143
151
|
};
|