Skip to content

Commit 0e138a2

Browse files
committed
fix translation and placement of address text
1 parent 88b49aa commit 0e138a2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/components/TutorialMetadata.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export enum Skill {
2727
}
2828

2929
export const getSkillTranslationId = (skill: Skill): TranslationKey =>
30-
`page-developers-tutorials:page-tutorial-${Skill[skill.toUpperCase() as keyof typeof Skill]
30+
`page-developers-tutorials:page-tutorial-${
31+
Skill[skill.toUpperCase() as keyof typeof Skill]
3132
}`
3233

3334
const TutorialMetadata = ({
@@ -82,16 +83,16 @@ const TutorialMetadata = ({
8283
</div>
8384
</Flex>
8485
{address && (
85-
<Flex className="text-text300 mb-6 mt-[-1rem] flex-wrap text-sm">
86+
<Flex className="text-text300 -mt-4 mb-6 flex-wrap text-sm">
8687
<CopyToClipboard text={address}>
8788
{(isCopied) => (
88-
<div className="bg-ednBackground hover:bg-primary100 cursor-pointer overflow-hidden text-ellipsis px-1 font-mono text-sm text-primary">
89-
<div className="uppercase">
90-
<Translation id="comp-tutorial-metadata-tip-author" />{" "}
91-
</div>
92-
{address} {isCopied && <Translation id="copied" />}
89+
<div className="cursor-pointer overflow-hidden text-ellipsis bg-background-highlight px-1 font-mono text-sm text-primary hover:bg-primary-hover hover:text-body-inverse">
90+
<span className="uppercase">
91+
<Translation id="page-developers-tutorials:comp-tutorial-metadata-tip-author" />
92+
</span>{" "}
93+
{address} {isCopied && <Translation id="copied" />}{" "}
9394
{isCopied && (
94-
<Emoji className="mr-2 text-sm" text=":white_check_mark:" />
95+
<Emoji className="text-sm" text=":white_check_mark:" />
9596
)}
9697
</div>
9798
)}
@@ -102,4 +103,4 @@ const TutorialMetadata = ({
102103
)
103104
}
104105

105-
export default TutorialMetadata
106+
export default TutorialMetadata

0 commit comments

Comments
 (0)