Skip to content

Commit b651944

Browse files
committed
update responsive css
1 parent 2ba470f commit b651944

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

components/CartLink.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ function CartLink(props) {
1313
let { context: { numberOfItemsInCart = 0 }} = props
1414
return (
1515
<div>
16-
<div className="fixed top-53 right-24 desktop:right-flexiblemargin z-10">
16+
<div className="fixed
17+
sm:top-53 right-24 desktop:right-flexiblemargin
18+
top-40 z-10">
1719
<div className="flex flex-1 justify-end pr-4 relative">
1820
<Link href="/cart">
1921
<a aria-label="Cart">

layouts/layout.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ export default function Layout({ children, categories }) {
1212
<div>
1313
<nav>
1414
<div className="flex justify-center">
15-
<div className="px-4 pt-12 pb-6 flex flex-col w-fw mobile:px-12 sm:flex-row desktop:px-0">
16-
<Link href="/">
17-
<a aria-label="Home">
18-
<div className="mb-4 sm:mr-16">
15+
<div className="
16+
mobile:px-12 sm:flex-row sm:pt-12 sm:pb-6 desktop:px-0
17+
px-4 pt-8 flex flex-col w-fw">
18+
<div className="mb-4 sm:mr-16 max-w-48 sm:max-w-none">
19+
<Link href="/">
20+
<a aria-label="Home">
1921
<img src="/logo.png" alt="logo" width="90" height="28" />
20-
</div>
21-
</a>
22-
</Link>
22+
</a>
23+
</Link>
24+
</div>
2325
<div className="flex flex-wrap mt-1">
2426
<Link href="/">
2527
<a aria-label="Home">

0 commit comments

Comments
 (0)