Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 317de42

Browse files
cart display fix for larger > 1100px
1 parent 95ebef5 commit 317de42

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

‎src/components/intermediate/ProductPage/Cart.css‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@
88
width: 300px;
99
min-height: 200px;
1010
border-radius: 10px;
11-
z-index: 50;
11+
z-index: 20;
1212
display: grid;
1313
grid-template-rows: auto 1fr;
1414
}
1515

16+
@media only screen and (min-width: 1100px) {
17+
.product-page-cart-container {
18+
top: 60px;
19+
right: 0px;
20+
}
21+
}
22+
1623
.product-page-cart-top {
1724
padding: 20px;
1825
border-bottom: 0.5px solid hsl(220, 14%, 75%);

‎src/components/intermediate/ProductPage/Lightbox.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
.product-page-lightbox-display {
1919
opacity: 1;
2020
visibility: visible;
21+
z-index: 50;
2122
}
2223

2324
.product-page-lightbox-overlay {

‎src/components/intermediate/ProductPage/Nav.css‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@
6565
align-items: center;
6666
}
6767

68+
@media only screen and (min-width: 1100px) {
69+
.product-page-header-right {
70+
position: relative;
71+
}
72+
}
73+
6874
.product-page-header-chart {
6975
background-color: transparent;
7076
border: none;

‎src/components/intermediate/ProductPage/Nav.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ const Nav = ({setCartItems, cartItems, amount}) => {
4949
<div className="product-page-header-avatar">
5050
<img src={avatar} alt="" />
5151
</div>
52-
</div>
5352
{showCart && <Cart amount={amount} cartItems={cartItems} setCartItems={setCartItems} setShowCart={setShowCart}></Cart>}
53+
</div>
5454
</header>
5555
)
5656
}

‎src/components/intermediate/ProductPage/ProductPage.jsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const ProductPage = () => {
1414
data-aos-delay="200"
1515
data-aos-duration="600"
1616
>
17+
1718
<Nav amount={amount} cartItems={cartItems} setCartItems={setCartItems}></Nav>
19+
1820
<Product amount={amount} setAmount={setAmount} setCartItems={setCartItems} cartItems={cartItems}></Product>
1921
</div>
2022
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /