From eb18c0b1724a1d68fe4bff75cf3c7d2c9a2efdd4 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Fri, 26 Sep 2025 02:51:24 +0200 Subject: [PATCH] feat(forntend): Re-Add About link to main nav dropdown (#10395) * Re-Add About link to main nav dropdown Closes #10392 * disable text selection on most of version dialog - maybe that helps ppl. copying the right section * highlight the correct copy button --- src/frontend/src/components/buttons/CopyButton.tsx | 7 +++++-- .../src/components/modals/AboutInvenTreeModal.tsx | 10 ++++++++-- src/frontend/src/components/nav/MainMenu.tsx | 8 ++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/components/buttons/CopyButton.tsx b/src/frontend/src/components/buttons/CopyButton.tsx index 79edcc174c..dff4a42588 100644 --- a/src/frontend/src/components/buttons/CopyButton.tsx +++ b/src/frontend/src/components/buttons/CopyButton.tsx @@ -2,6 +2,7 @@ import { t } from '@lingui/core/macro'; import { ActionIcon, Button, + type DefaultMantineColor, CopyButton as MantineCopyButton, type MantineSize, Text, @@ -16,12 +17,14 @@ export function CopyButton({ value, label, content, - size + size, + color = 'gray' }: Readonly<{ value: any; label?: string; content?: JSX.Element; size?: MantineSize; + color?: DefaultMantineColor; }>) { const ButtonComponent = label ? Button : ActionIcon; @@ -30,7 +33,7 @@ export function CopyButton({ {({ copied, copy }) => ( + @@ -187,7 +187,13 @@ const AboutContent = ({ - +
+ +