Skip to content

Commit

Permalink
[project-base] [SSP-2564] fixed responsive design in mobile menu and …
Browse files Browse the repository at this point in the history
…on cart page (#3324)
  • Loading branch information
sebaholesz authored Aug 14, 2024
2 parents ab3c508 + afe863e commit 6d1ac40
Show file tree
Hide file tree
Showing 28 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions storefront/components/Blocks/PromoCode/PromoCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const PromoCode: FC = () => {
) : (
<>
<Button
className="text-sm mb-3"
className="max-sm:w-full text-sm mb-3"
tid={TIDs.blocks_promocode_add_button}
variant="inverted"
onClick={() => setIsContentVisible(!isContentVisible)}
Expand All @@ -62,7 +62,7 @@ export const PromoCode: FC = () => {
applyPromoCodeToCart(promoCodeFormData.promoCode),
)}
>
<div className="flex gap-2 max-w-sm">
<div className="flex max-w-sm">
<TextInputControlled
isWithoutFormLineError
control={formProviderMethods.control}
Expand All @@ -72,6 +72,7 @@ export const PromoCode: FC = () => {
textInputProps={{
label: formMeta.fields.promoCode.label,
required: true,
className: '!rounded-r-none border-r-0',
}}
/>
<SubmitButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type HamburgerMenuProps = {
export const HamburgerMenu: FC<HamburgerMenuProps> = ({ onClick }) => {
return (
<div
className={twJoin('flex h-10 w-12 cursor-pointer items-center rounded bg-none text-linkInverted')}
className={twJoin('flex h-10 w-8 cursor-pointer items-center rounded bg-none text-linkInverted')}
onClick={onClick}
>
<div className="flex w-7 items-center justify-center">
Expand Down
8 changes: 4 additions & 4 deletions storefront/components/Pages/Cart/CartSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { PromoCode } from 'components/Blocks/PromoCode/PromoCode';
import { CartPreview } from 'components/Pages/Cart/CartPreview';

export const CartSummary: FC = () => (
<div className="mb-8 flex flex-col vl:flex-row vl:items-baseline">
<div className="pr-0 vl:pr-4 w-1/3">
<div className="mb-8 flex flex-col lg:flex-row vl:items-baseline flex-wrap gap-2 lg:gap-0">
<div className="pr-0 vl:pr-4 lg:w-1/2 vl:w-4/12">
<PromoCode />
</div>
<div className="ml-auto text-center vl:pr-8 w-1/3">
<div className="ml-auto flex justify-end items-center vl:pr-8 lg:w-1/2 vl:w-5/12">
<FreeTransport />
</div>
<div className="w-1/3 vl:w-80">
<div className="lg:w-full vl:w-3/12">
<CartPreview />
</div>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6d1ac40

Please sign in to comment.