привет, я работаю в реаги и я использую antd, но я также делаю свой собственный дизайн. У меня проблемы, когда я делаю окончательную компиляцию, чтобы передать весь файл в производство, в локальном режиме все стили выглядят очень хорошо, но в работе css теряется, нет c, если это происходит, потому что я использую sass , или это потому, что я делаю конверт из библиотечного компонента, который я использую, который в данном случае является antdesign
, я получил это в моем jsx
<div className="selectors-container ${mode === 'Light'} ">
<div className="swap-selectors">
<div className="title">
<h6>From:</h6>
</div>
<div className="selector">
<Select
className="price-card-selector emp "
value={swapCoins.from}
style={{ width: '100%', padding: 0, border: 'none' }}
onChange={e => setswapCoins({ ...swapCoins, from: e })}
>
{options}
</Select>
<input className='input' type='number' value={swapValue.from} onChange={e => handleChangeFrom(e)} />
</div>
</div>
<div className="swap-icon" onClick={swapCointTypes}>
<i className="fas fa-exchange-alt"></i>
</div>
<div className="swap-selectors">
<div className="title">
<h6>To:</h6>
</div>
<div className="selector">
<Select
className="price-card-selector emp"
value={swapCoins.to}
style={{ width: '100%', padding: 0, border: 'none' }}
onChange={e => setswapCoins({ ...swapCoins, to: e })}
>
{options}
</Select>
<input className='input' type="number" value={swapValue.to} onChange={e => handleChangeTo(e)} />
</div>
</div>
</div>
, и я использую это Файл SASS
@import '../../../css/resposiveSize';
@mixin center() {
display: flex;
justify-content: center;
align-items: center;
}
.selectors-container{
display: flex;
justify-content: space-around;
width: 100%;
margin: 20px 0;
@include media ('lg'){
flex-direction: column;
}
.swap-selectors{
display: flex;
flex-direction: column;
justify-content: center;
.selector{
display: flex;
.price-card-selector{
border-radius: 5px 0 0 5px;
margin: 0 !important;
}
.ant-select-selection.ant-select-selection--single{
&.ant-select-selection--single .ant-select-selection__rendered {
margin-right: 30px;
@include media ('lg'){
margin-right: none;
}
}
display: flex;
.ant-select-arrow{
position: relative;
}
.ant-select-selection-selected-value{
display: flex !important;
justify-content: space-around;
align-items: center;
.image{
width: 25px;
}
.text{
margin-left: 5px;
width: 35px;
}
}
}
}
input{
background-color: #fafafa;
border: none;
border-radius: 0 5px 5px 0;
text-align: end;
padding: 0 10px;
width: 100%;
}
}
li{
display: flex !important;
}
.swap-icon{
margin-top: 30px ;
@include center;
cursor: pointer;
font-size: 20px;
&:hover{
color: #00bbff;
}
}
.to{
display: flex;
flex-direction: column;
justify-content: center;
}
}
В местном масштабе я получил этот результат ![enter image description here](https://i.stack.imgur.com/JgeO4.png)
Ооо, но если я попытаюсь увидеть производственную сборку, я получу это
![enter image description here](https://i.stack.imgur.com/lhbZW.png)