cart: enhance "you may like" styles
This commit is contained in:
@@ -514,29 +514,11 @@
|
|||||||
outline-offset: 4px;
|
outline-offset: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.responsive-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
||||||
gap: 16px;
|
|
||||||
overflow-x: visible;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Extra large screens (min-width: 1024px) */
|
|
||||||
@media (min-width: 1024px) {
|
|
||||||
.responsive-grid {
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
||||||
gap: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Large desktop screens (min-width: 1280px) */
|
|
||||||
@media (min-width: 1280px) {
|
|
||||||
.responsive-grid {
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
|
||||||
gap: 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Extra large desktop screens (min-width: 1440px) */
|
/* Extra large desktop screens (min-width: 1440px) */
|
||||||
@media (min-width: 1440px) {
|
@media (min-width: 1440px) {
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ export default function CartDesktopLayout() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={`${styles.cartContainer} ${styles.desktopCartContainer}`}>
|
<div className={`${styles.cartContainer} ${styles.desktopCartContainer}`}>
|
||||||
<Row gutter={[40, 40]} style={{ width: "100%" }}>
|
<Row gutter={40} style={{ width: "100%" }}>
|
||||||
{/* Main Content Column */}
|
{/* Main Content Column */}
|
||||||
<Col xs={24} lg={16} xl={17}>
|
<Col xs={24} lg={14} xl={16}>
|
||||||
<div className={styles.desktopMainContent}>
|
<div className={styles.desktopMainContent}>
|
||||||
{/* <div className={styles.desktopRecommendationsSection}>
|
{/* <div className={styles.desktopRecommendationsSection}>
|
||||||
<YouMightAlsoLike />
|
<YouMightAlsoLike />
|
||||||
@@ -168,7 +168,7 @@ export default function CartDesktopLayout() {
|
|||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
{/* Sidebar Column */}
|
{/* Sidebar Column */}
|
||||||
<Col xs={24} lg={8} xl={7}>
|
<Col xs={24} lg={10} xl={8}>
|
||||||
<div className={styles.desktopSidebar}>
|
<div className={styles.desktopSidebar}>
|
||||||
<YouMightAlsoLike />
|
<YouMightAlsoLike />
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 100%;
|
overflow-y: scroll;
|
||||||
overflow: auto;
|
|
||||||
scrollbar-width: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.darkApp) .youMightAlsoLikeContainer path {
|
:global(.darkApp) .youMightAlsoLikeContainer path {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export default function YouMightAlsoLike() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div style={{ marginBottom: 16 }}>
|
<div style={{ margin: 16 }}>
|
||||||
<ProText
|
<ProText
|
||||||
strong
|
strong
|
||||||
style={{
|
style={{
|
||||||
@@ -51,7 +51,7 @@ export default function YouMightAlsoLike() {
|
|||||||
</ProText>
|
</ProText>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={`${styles.youMightAlsoLikeContainer} responsive-grid`}>
|
<div className={styles.youMightAlsoLikeContainer}>
|
||||||
{menuItems.map((item: Product) => (
|
{menuItems.map((item: Product) => (
|
||||||
<div key={item.id}>
|
<div key={item.id}>
|
||||||
<div
|
<div
|
||||||
@@ -62,7 +62,7 @@ export default function YouMightAlsoLike() {
|
|||||||
justifyContent: "space-between",
|
justifyContent: "space-between",
|
||||||
width: isMobile ? "95px" : isTablet ? "120px" : "140px",
|
width: isMobile ? "95px" : isTablet ? "120px" : "140px",
|
||||||
position: "relative",
|
position: "relative",
|
||||||
height: 155,
|
height: 200,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user