Skip to content

Commit

Permalink
Merge pull request #106 from MargoMarm/bagfix/products/input-trim
Browse files Browse the repository at this point in the history
Bagfix/products/input trim
  • Loading branch information
TaurusVB authored Sep 29, 2023
2 parents 87ac491 + 58262ce commit da8e413
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/components/Modal/Modal.styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const ModalWrap = styled.div`
${mq.mobile} {
width: 335px;
}
padding: 48px 20px;
padding: 40px 20px;
border-radius: 8px;
background-color: ${colors.modalBlack};
z-index: 1;
Expand All @@ -38,7 +38,7 @@ export const ModalWrap = styled.div`
width: ${props => props.width}px;
max-height: ${props => props.height[1]}px;
padding: 48px 32px;
padding: 40px 32px;
}
`;

Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductsFilter/ProductsFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function ProductsFilter() {
}, 500);

const handleChangeQuery = event => {
const selectedValue = event.target.value;
const selectedValue = event.target.value.trim();
debouncedHandleChange(selectedValue);
};
const handleChangeisReccomended = event => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const ProductsOrExercisesItem = ({ page, data }) => {
page === 'product' ? toggleAddModal : closeModalWithoutData
}
width={page === 'product' ? 481 : 696}
height={page === 'product' ? [285, 286] : [405, 550]}
height={page === 'product' ? [285, 286] : [505, 550]}
>
{page === 'product' && (
<AddProductForm
Expand Down
3 changes: 2 additions & 1 deletion src/components/Scrollbar/Scrollbar.syled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const ScrollContainer = styled.div`
${mq.tablet} {
width: ${({ width }) => width?.tab + 'px' || '100%'};
height: 550px;
scrollbar-color: ${colors.orange} ${colors.textWhite01};
scrollbar-width: thin;
::-webkit-scrollbar {
Expand All @@ -27,6 +28,6 @@ export const ScrollContainer = styled.div`
}
${mq.desktop} {
width: ${({ width }) => width?.dt + 'px' || '100%'};
height: calc(100vh - 230px);
height: 570px;
}
`;
4 changes: 2 additions & 2 deletions src/pages/Exercises/Exercises.styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export const ExercisesListContainer = styled.div`
${mq.tablet} {
padding: 32px 32px 48px 32px;
padding: 32px 32px 0px 32px;
}
${mq.desktop} {
padding: 0px 81px 81px 96px;
padding: 0px 81px 0px 96px;
}
`;

Expand Down
8 changes: 4 additions & 4 deletions src/pages/Products/Products.styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import imgProducts from '../../assets/images/imgProduct';
export const ProductPageContainer = styled.div`
display: flex;
flex-direction: column;
padding: 40px 20px 80px 20px;
padding: 40px 20px 0px 20px;
gap: 40px;
position: relative;
height: 100vh;
${mq.tablet} {
gap: 32px;
padding: 72px 32px 48px 32px;
padding: 72px 32px 0px 32px;
}
${mq.desktop} {
padding: 68px 81px 81px 96px;
padding: 68px 81px 0px 96px;
gap: 28px;
Expand Down

0 comments on commit da8e413

Please sign in to comment.