Skip to content

Commit

Permalink
Fix error when clicking the source code link
Browse files Browse the repository at this point in the history
  • Loading branch information
adipascu committed Oct 29, 2023
1 parent a2ad5d9 commit 62c5ea8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Countdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const animationLoop = (cb: (time: DOMHighResTimeStamp) => void) => {
return () => cancelAnimationFrame(handle);
};

const COPY_LABEL = "Click to copy age to clipboard";

export default ({
birthDay,
openSettings,
Expand Down Expand Up @@ -91,8 +93,6 @@ export default ({
/>
</div>
<div
onClick={copyAgeToClipboard}
title="Click to copy age to clipboard"
style={{
display: "flex",
"flex-direction": "row",
Expand All @@ -106,14 +106,18 @@ export default ({
color: colorPrimary(),
}}
>
<div>{largeAge()}</div>
<div onClick={copyAgeToClipboard} title={COPY_LABEL}>
{largeAge()}
</div>
<div
style={{
display: "flex",
"flex-direction": "column",
}}
>
<div
onClick={copyAgeToClipboard}
title={COPY_LABEL}
style={{
"font-size": "38.4px",
"margin-top": "5px",
Expand Down

0 comments on commit 62c5ea8

Please sign in to comment.