Skip to content

Commit 7961209

Browse files
2 parents 7f55353 + 02cff38 commit 7961209

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

frontend/src/components/HomeComponents/Hero/CopyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CopyButtonProps } from '@/components/utils/types';
55

66
export const CopyButton = ({ text, label }: CopyButtonProps) => (
77
<CopyToClipboard text={text} onCopy={() => showToast(label)}>
8-
<button className="bg-blue-500 hover:bg-gray-900 text-white font-bold py-4 px-2 rounded ml-2">
8+
<button className="bg-blue-500 hover:bg-gray-900 text-white font-bold py-3 md:py-4 px-3 md:px-4 rounded ml-2">
99
<CopyIcon />
1010
</button>
1111
</CopyToClipboard>

frontend/src/components/HomeComponents/Hero/Hero.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ export const Hero = (props: Props) => {
5151
</div>
5252
<button
5353
onClick={() => setShowUuid(!showUuid)}
54-
className="text-white font-bold p-2 rounded-full m-2"
54+
className="text-white font-bold m-2 bg-gray-700 hover:bg-gray-600 p-3 sm:p-4 rounded flex-shrink-0"
5555
aria-label={showUuid ? 'Hide UUID' : 'Show UUID'}
5656
>
5757
{showUuid ? (
58-
<EyeOff className="size-5" />
58+
<EyeOff className="size-5 m-0.5" />
5959
) : (
60-
<Eye className="size-5" />
60+
<Eye className="size-5 m-0.5" />
6161
)}
6262
</button>
6363
<CopyButton text={props.uuid} label="UUID" />
@@ -77,13 +77,13 @@ export const Hero = (props: Props) => {
7777
</div>
7878
<button
7979
onClick={() => setShowSecret(!showSecret)}
80-
className="text-white font-bold p-2 rounded-full m-2"
80+
className="text-white font-bold m-2 bg-gray-700 hover:bg-gray-600 p-3 sm:p-4 rounded flex-shrink-0"
8181
aria-label={showSecret ? 'Hide secret' : 'Show secret'}
8282
>
8383
{showSecret ? (
84-
<EyeOff className="size-5" />
84+
<EyeOff className="size-5 m-0.5" />
8585
) : (
86-
<Eye className="size-5" />
86+
<Eye className="size-5 m-0.5" />
8787
)}
8888
</button>
8989
<CopyButton

frontend/src/components/HomeComponents/Hero/__tests__/__snapshots__/CopyButton.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`CopyButton Component using snapshot renders correctly 1`] = `
44
<DocumentFragment>
55
<button
6-
class="bg-blue-500 hover:bg-gray-900 text-white font-bold py-4 px-2 rounded ml-2"
6+
class="bg-blue-500 hover:bg-gray-900 text-white font-bold py-3 md:py-4 px-3 md:px-4 rounded ml-2"
77
>
88
<svg
99
class="lucide lucide-copy "

frontend/src/components/HomeComponents/Hero/__tests__/__snapshots__/Hero.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ exports[`Hero component using snapshot renders correctly 1`] = `
7070
</div>
7171
<button
7272
aria-label="Hide UUID"
73-
class="text-white font-bold p-2 rounded-full m-2"
73+
class="text-white font-bold m-2 bg-gray-700 hover:bg-gray-600 p-3 sm:p-4 rounded flex-shrink-0"
7474
>
7575
<svg
76-
class="lucide lucide-eye-off size-5"
76+
class="lucide lucide-eye-off size-5 m-0.5"
7777
fill="none"
7878
height="24"
7979
stroke="currentColor"
@@ -127,10 +127,10 @@ exports[`Hero component using snapshot renders correctly 1`] = `
127127
</div>
128128
<button
129129
aria-label="Hide secret"
130-
class="text-white font-bold p-2 rounded-full m-2"
130+
class="text-white font-bold m-2 bg-gray-700 hover:bg-gray-600 p-3 sm:p-4 rounded flex-shrink-0"
131131
>
132132
<svg
133-
class="lucide lucide-eye-off size-5"
133+
class="lucide lucide-eye-off size-5 m-0.5"
134134
fill="none"
135135
height="24"
136136
stroke="currentColor"

frontend/src/components/HomeComponents/Navbar/NavbarDesktop.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ export const NavbarDesktop = (
169169
</DialogHeader>
170170
<div className="flex justify-end gap-4 mt-4">
171171
<Button
172-
className="bg-[#3B82F6] hover:bg-white focus-visible:ring-0 focus-visible:ring-offset-0 focus:outline-none"
172+
className="bg-[#3B82F6] hover:bg-[#3B82F6] focus-visible:ring-0 focus-visible:ring-offset-0 focus:outline-none"
173173
onClick={handleExportTXT}
174174
>
175175
<FileText className="mr-2 h-4 w-4" />
176176
Download .txt
177177
</Button>
178178
<Button
179-
className="bg-[#3B82F6] hover:bg-white"
179+
className="bg-[#3B82F6] hover:bg-[#3B82F6]"
180180
onClick={handleExportJSON}
181181
>
182182
<FileJson className="mr-2 h-4 w-4" />

0 commit comments

Comments
 (0)