Skip to content

Commit d3d1546

Browse files
Fix copy icon alignment on pageheader (MystenLabs#5430)
1 parent 06ba46f commit d3d1546

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/explorer/src/ui/PageHeader.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,22 @@ export function PageHeader({ title, subtitle, type, status }: PageHeaderProps) {
6464
</Heading>
6565
</div>
6666
<div className="flex flex-col lg:flex-row gap-2">
67-
<div className="flex items-center gap-2 min-w-0">
67+
<div className="flex items-start gap-2 min-w-0">
6868
<div className="break-words min-w-0">
6969
<Heading as="h2" variant="heading2" weight="bold" mono>
7070
{title}
7171
</Heading>
7272
</div>
7373
<button
74+
type="button"
7475
onClick={() => {
7576
navigator.clipboard.writeText(title);
7677
toast.success('Copied!');
7778
}}
78-
className="bg-transparent border-none cursor-pointer p-0 m-0 text-sui-steel flex justify-center items-center"
79+
className="bg-transparent border-none cursor-pointer p-0 m-0 text-sui-steel flex justify-center items-center -mt-0.5"
7980
>
80-
<CopyIcon />
81+
<span className="sr-only">Copy</span>
82+
<CopyIcon aria-hidden="true" />
8183
</button>
8284
</div>
8385

0 commit comments

Comments
 (0)