Skip to content

Commit e59fcf6

Browse files
authored
Bug #46 (PR #48)
1 parent 2efd0ab commit e59fcf6

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

packages/nextjs/components/Header.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ export const Header = () => {
2020
className="navbar bg-base-100 p-0 flex-wrap items-center justify-around lg:justify-between shadow-md shadow-secondary h-full"
2121
onMouseLeave={resetTooltip}
2222
>
23-
<div className="navbar-start justify-center lg:justify-start w-1/2 lg:w-auto order-1">
23+
<div className="navbar-start justify-around lg:justify-start max-w-[50%] w-auto order-1">
2424
<Image
25-
className="aspect-square size-16 p-0 ml-2"
25+
className="aspect-square size-16 p-0 hidden xs:[display:initial] ml-2 "
2626
src="/logo.svg"
2727
alt="10 tance donut logo"
2828
width={64}
2929
height={64}
3030
/>
31-
<h1 className="inline-block align-middle m-0 ml-5 font-medium h-full leading-[4rem] text-2xl">10tance</h1>
32-
<div className="inline-block relative">
33-
<button className="btn btn-circle btn-outline m-3 size-4 min-h-4 text-xs leading-3" onClick={toggleTooltip}>
31+
<h1 className="inline-block align-middle m-0 font-medium h-full leading-[4rem] text-2xl ml-3">10tance</h1>
32+
<div className="inline-block relative ml-3">
33+
<button className="btn btn-circle btn-outline size-4 min-h-4 text-xs leading-3" onClick={toggleTooltip}>
3434
?
3535
</button>
3636
<div
@@ -61,12 +61,12 @@ export const Header = () => {
6161
</div>
6262
</div>
6363
</div>
64-
<div className="navbar-center inline-block text-center font-light leading-initial lg:leading-[4rem] text-xl w-full lg:w-auto order-3 lg:order-2">
64+
<div className="navbar-center inline-block text-center font-light leading-initial lg:leading-[4rem] text-xl w-full lg:w-auto order-3 lg:order-2">
6565
<span>
6666
showing <em>ERC20</em> objects from the <em>Optimism</em> chain
6767
</span>
6868
</div>
69-
<GoToUserControl className="navabar-end pr-2 justify-center lg:justify-end w-1/2 lg:w-auto order-2 lg:order-3" />
69+
<GoToUserControl className="navabar-end justify-center lg:justify-end max-w-[50%] order-2 lg:order-3" />
7070
</div>
7171
);
7272
};

packages/nextjs/components/leaflet/GoToUserControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const GoToUserControl: FunctionComponent<{ className: string }> = ({ className =
3030
return (
3131
<form onSubmit={handleGoToAction} className={className}>
3232
<AddressInput placeholder="Go to address" name="address" value={localGoTo} onChange={setLocalGoTo} />
33-
<button className="btn btn-sm h-4">Go</button>
33+
<button className="btn btn-sm h-4 mx-1">Go</button>
3434
</form>
3535
);
3636
};

packages/nextjs/tailwind.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import defaultTheme from "tailwindcss/defaultTheme";
2+
13
/** @type {import('tailwindcss').Config} */
24
module.exports = {
35
content: ["./app/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}", "./utils/**/*.{js,ts,jsx,tsx}"],
@@ -82,6 +84,10 @@ module.exports = {
8284
animation: {
8385
"pulse-fast": "pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite",
8486
},
87+
screens: {
88+
'xs': '400px',
89+
...defaultTheme.screens,
90+
},
8591
},
8692
},
8793
};

0 commit comments

Comments
 (0)