Skip to content

Commit b4f4f74

Browse files
committed
feat: update header height
1 parent b16af8f commit b4f4f74

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

block-explorer/components/homepage/latest-blocks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const LatestBlocks = (props: LatestBlocksProps) => {
4747
<TimeAgoDate date={block.timestamp} />
4848
</span>
4949
) : (
50-
<span className="text-xs text-[#FB923C]">Unfinalized</span>
50+
<span className="text-xs text-text-warning-primary">Unfinalized</span>
5151
)}
5252
</DataItemCard>
5353
);

block-explorer/components/main-search.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ export default function MainSearch() {
3636

3737
return (
3838
<div className="relative">
39-
<RiSearchLine className="absolute left-4 top-3 -z-10 size-4 text-muted-foreground" />
39+
<RiSearchLine className="absolute left-3 top-2 -z-10 size-4 text-muted-foreground" />
4040
<Input
4141
ref={inputRef}
42-
className="px-10 focus:outline-0"
42+
className="h-8 px-9 focus:outline-0"
4343
placeholder="Search by address / txn hash / block..."
4444
value={value}
4545
onChange={handleChangeValue}
4646
onKeyDown={handlePress}
4747
/>
48-
<div className="absolute right-2.5 top-2.5 -z-10 m-auto flex size-5 items-center justify-center rounded-[4px] bg-[#F5F5F5] text-muted-foreground dark:bg-[#1C1C1C]">
48+
<div className="absolute right-1.5 top-1.5 -z-10 m-auto flex size-5 items-center justify-center rounded-[4px] bg-[#F5F5F5] text-muted-foreground dark:bg-[#1C1C1C]">
4949
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
5050
<path d="M8.06061 2.33337H9.33334L5.9394 11.6667H4.66667L8.06061 2.33337Z" fill="currentColor" />
5151
</svg>

block-explorer/components/site-top-bar.tsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,22 @@ export const SiteTopBar = () => {
1212
const isHomePage = pathname === '/';
1313

1414
return (
15-
<div className="border-b pb-[11px] pt-3">
16-
<div className="container px-4 lg:px-8">
17-
<div className="flex items-center justify-between gap-4">
18-
<div className="hidden w-full select-none items-center gap-2 text-xs text-primary/80 lg:flex">
19-
<OnlyMainnet>
20-
<RootPrice />
21-
</OnlyMainnet>
22-
{isHomePage && <div className="hidden lg:flex-1" />}
23-
<RiGasStationLine className="size-4 text-muted-foreground" />{' '}
24-
<span className="text-muted-foreground">EVM Gas: </span>
25-
<span>7500 Gwei</span>
26-
</div>
27-
{!isHomePage && (
28-
<div className="w-full grow lg:max-w-[656px]">
29-
<MainSearch />
30-
</div>
31-
)}
15+
<div className="border-b">
16+
<div className="container flex h-12 items-center justify-between gap-4 px-4 py-2 lg:px-8">
17+
<div className="hidden w-full select-none items-center gap-2 text-xs text-primary/80 lg:flex">
18+
<OnlyMainnet>
19+
<RootPrice />
20+
</OnlyMainnet>
21+
{isHomePage && <div className="hidden lg:flex-1" />}
22+
<RiGasStationLine className="size-4 text-muted-foreground" />{' '}
23+
<span className="text-muted-foreground">EVM Gas: </span>
24+
<span>7500 Gwei</span>
3225
</div>
26+
{!isHomePage && (
27+
<div className="w-full grow lg:max-w-[656px]">
28+
<MainSearch />
29+
</div>
30+
)}
3331
</div>
3432
</div>
3533
);

0 commit comments

Comments
 (0)