Skip to content

Commit

Permalink
Added tailwind solution to fix the long key issue (#2620)
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Thomas <[email protected]>
  • Loading branch information
adot-7 and chronark authored Nov 7, 2024
1 parent 8526728 commit adff8e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export const CreateKey: React.FC<Props> = ({ apiId, keyAuthId, defaultBytes, def
</AlertDescription>
</Alert>
<Code className="flex items-center justify-between w-full gap-4 mt-2 my-8 ph-no-capture max-sm:text-xs sm:overflow-hidden">
<pre>{showKey ? key.data.key : maskedKey}</pre>
<pre className="overflow-x-auto">{showKey ? key.data.key : maskedKey}</pre>
<div className="flex items-start justify-between gap-4 max-sm:absolute max-sm:right-11">
<VisibleButton isVisible={showKey} setIsVisible={setShowKey} />
<CopyButton value={key.data.key} />
Expand Down

0 comments on commit adff8e8

Please sign in to comment.