Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/components/HomeComponents/Hero/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CopyButtonProps } from '@/components/utils/types';

export const CopyButton = ({ text, label }: CopyButtonProps) => (
<CopyToClipboard text={text} onCopy={() => showToast(label)}>
<button className="bg-blue-500 hover:bg-gray-900 text-white font-bold py-4 px-2 rounded ml-2">
<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">
<CopyIcon />
</button>
</CopyToClipboard>
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/HomeComponents/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ export const Hero = (props: Props) => {
</div>
<button
onClick={() => setShowUuid(!showUuid)}
className="text-white font-bold p-2 rounded-full m-2"
className="text-white font-bold m-2 bg-gray-700 hover:bg-gray-600 p-3 sm:p-4 rounded flex-shrink-0"
aria-label={showUuid ? 'Hide UUID' : 'Show UUID'}
>
{showUuid ? (
<EyeOff className="size-5" />
<EyeOff className="size-5 m-0.5" />
) : (
<Eye className="size-5" />
<Eye className="size-5 m-0.5" />
)}
</button>
<CopyButton text={props.uuid} label="UUID" />
Expand All @@ -77,13 +77,13 @@ export const Hero = (props: Props) => {
</div>
<button
onClick={() => setShowSecret(!showSecret)}
className="text-white font-bold p-2 rounded-full m-2"
className="text-white font-bold m-2 bg-gray-700 hover:bg-gray-600 p-3 sm:p-4 rounded flex-shrink-0"
aria-label={showSecret ? 'Hide secret' : 'Show secret'}
>
{showSecret ? (
<EyeOff className="size-5" />
<EyeOff className="size-5 m-0.5" />
) : (
<Eye className="size-5" />
<Eye className="size-5 m-0.5" />
)}
</button>
<CopyButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`CopyButton Component using snapshot renders correctly 1`] = `
<DocumentFragment>
<button
class="bg-blue-500 hover:bg-gray-900 text-white font-bold py-4 px-2 rounded ml-2"
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"
>
<svg
class="lucide lucide-copy "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ exports[`Hero component using snapshot renders correctly 1`] = `
</div>
<button
aria-label="Hide UUID"
class="text-white font-bold p-2 rounded-full m-2"
class="text-white font-bold m-2 bg-gray-700 hover:bg-gray-600 p-3 sm:p-4 rounded flex-shrink-0"
>
<svg
class="lucide lucide-eye-off size-5"
class="lucide lucide-eye-off size-5 m-0.5"
fill="none"
height="24"
stroke="currentColor"
Expand Down Expand Up @@ -127,10 +127,10 @@ exports[`Hero component using snapshot renders correctly 1`] = `
</div>
<button
aria-label="Hide secret"
class="text-white font-bold p-2 rounded-full m-2"
class="text-white font-bold m-2 bg-gray-700 hover:bg-gray-600 p-3 sm:p-4 rounded flex-shrink-0"
>
<svg
class="lucide lucide-eye-off size-5"
class="lucide lucide-eye-off size-5 m-0.5"
fill="none"
height="24"
stroke="currentColor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ export const NavbarDesktop = (
</DialogHeader>
<div className="flex justify-end gap-4 mt-4">
<Button
className="bg-[#3B82F6] hover:bg-white focus-visible:ring-0 focus-visible:ring-offset-0 focus:outline-none"
className="bg-[#3B82F6] hover:bg-[#3B82F6] focus-visible:ring-0 focus-visible:ring-offset-0 focus:outline-none"
onClick={handleExportTXT}
>
<FileText className="mr-2 h-4 w-4" />
Download .txt
</Button>
<Button
className="bg-[#3B82F6] hover:bg-white"
className="bg-[#3B82F6] hover:bg-[#3B82F6]"
onClick={handleExportJSON}
>
<FileJson className="mr-2 h-4 w-4" />
Expand Down
Loading