diff --git a/src/frontend/src/components/core/flowToolbarComponent/components/deploy-dropdown.tsx b/src/frontend/src/components/core/flowToolbarComponent/components/deploy-dropdown.tsx index 2bce6133e..d911c4015 100644 --- a/src/frontend/src/components/core/flowToolbarComponent/components/deploy-dropdown.tsx +++ b/src/frontend/src/components/core/flowToolbarComponent/components/deploy-dropdown.tsx @@ -77,11 +77,6 @@ export default function PublishDropdown() { ); }; - // using js const instead of applies.css because of group tag - const groupStyle = "text-muted-foreground group-hover:text-foreground"; - const externalUrlStyle = - "opacity-0 transition-all duration-300 group-hover:translate-x-3 group-hover:opacity-100 group-focus-visible:translate-x-3 group-focus-visible:opacity-100"; - return ( <> @@ -98,37 +93,25 @@ export default function PublishDropdown() { setOpenApiModal(true)} + data-testid="api-access-item" > -
- - API access -
+ + API access
setOpenExportModal(true)} > -
- - Export -
+ + Export
{}} + data-testid="mcp-server-item" > -
- - MCP Server -
+ + MCP Server +
{ENABLE_WIDGET && ( @@ -160,74 +136,69 @@ export default function PublishDropdown() { onClick={() => setOpenEmbedModal(true)} className="deploy-dropdown-item group" > -
- - Embed into site -
+ + Embed into site )} {ENABLE_PUBLISH && ( - {}} + data-testid="shareable-playground" > -
- - {}} +
+
+ -
+
- Shareable Playground + + {isPublished ? ( + + Shareable Playground + + ) : ( + + Shareable Playground + + )}
- - -
- { - e.preventDefault(); - e.stopPropagation(); - handlePublishedSwitch(isPublished); - }} - /> +
+ { + e.preventDefault(); + e.stopPropagation(); + handlePublishedSwitch(isPublished); + }} + />
-
+ )} diff --git a/src/frontend/src/style/applies.css b/src/frontend/src/style/applies.css index 24bd7b2b1..f730139cd 100644 --- a/src/frontend/src/style/applies.css +++ b/src/frontend/src/style/applies.css @@ -1277,11 +1277,7 @@ } .deploy-dropdown-item { - @apply h-11 cursor-pointer px-2.5 py-1 text-sm font-normal hover:bg-background !important; -} - -.deploy-dropdown-item > :first-child { - @apply flex h-8 w-full items-center rounded-md px-2 py-1 !important; + @apply cursor-pointer rounded-none px-3 py-2 text-[13px] font-normal; } :root {