From ca0110ae9236c7701c1cba03041e73abc558a74c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 10 Jul 2025 14:56:08 +0000 Subject: [PATCH] Improve ShareButton UI responsiveness and styling details Co-authored-by: matt --- .../src/components/chat/ShareButton.tsx | 68 ++++++++++--------- 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/webview-ui/src/components/chat/ShareButton.tsx b/webview-ui/src/components/chat/ShareButton.tsx index 48bb32ccff..d733905347 100644 --- a/webview-ui/src/components/chat/ShareButton.tsx +++ b/webview-ui/src/components/chat/ShareButton.tsx @@ -163,12 +163,12 @@ export const ShareButton = ({ item, disabled = false }: ShareButtonProps) => { - + {shareSuccess ? ( -
+
- - + + {shareSuccess.visibility === "public" ? t("chat:task.shareSuccessPublic") : t("chat:task.shareSuccessOrganization")} @@ -182,26 +182,30 @@ export const ShareButton = ({ item, disabled = false }: ShareButtonProps) => { {cloudUserInfo?.organizationName && ( handleShare("organization")} - className="cursor-pointer"> -
- -
- + className="cursor-pointer p-3 sm:p-4"> +
+ +
+ {t("chat:task.shareWithOrganization")} - + {t("chat:task.shareWithOrganizationDescription")}
)} - handleShare("public")} className="cursor-pointer"> -
- -
- {t("chat:task.sharePublicly")} - + handleShare("public")} + className="cursor-pointer p-3 sm:p-4"> +
+ +
+ + {t("chat:task.sharePublicly")} + + {t("chat:task.sharePubliclyDescription")}
@@ -228,36 +232,36 @@ export const ShareButton = ({ item, disabled = false }: ShareButtonProps) => { {/* Connect to Cloud Modal */} - - - + + + {t("account:cloudBenefitsTitle")}
-
-

+

+

{t("account:cloudBenefitsSubtitle")}

-
    -
  • - - {t("account:cloudBenefitSharing")} +
      +
    • + + {t("account:cloudBenefitSharing")}
    • -
    • - - {t("account:cloudBenefitHistory")} +
    • + + {t("account:cloudBenefitHistory")}
    • -
    • - - {t("account:cloudBenefitMetrics")} +
    • + + {t("account:cloudBenefitMetrics")}
-