diff --git a/packages/dify-ui/src/combobox/index.stories.tsx b/packages/dify-ui/src/combobox/index.stories.tsx index de295b9d1a2..69e06ab3b13 100644 --- a/packages/dify-ui/src/combobox/index.stories.tsx +++ b/packages/dify-ui/src/combobox/index.stories.tsx @@ -609,7 +609,7 @@ const InlinePopoverDemo = () => { }} > }>Choose reviewer - + Choose reviewer { More - + + File actions File details diff --git a/packages/dify-ui/src/popover/__tests__/index.spec.tsx b/packages/dify-ui/src/popover/__tests__/index.spec.tsx index fb69ffb2c32..3d7568546bf 100644 --- a/packages/dify-ui/src/popover/__tests__/index.spec.tsx +++ b/packages/dify-ui/src/popover/__tests__/index.spec.tsx @@ -28,7 +28,7 @@ describe('PopoverContent', () => { const screen = await renderWithSafeViewport( Open - + Popover content diff --git a/packages/dify-ui/src/popover/index.stories.tsx b/packages/dify-ui/src/popover/index.stories.tsx index dfab9d926e2..23908b78cc0 100644 --- a/packages/dify-ui/src/popover/index.stories.tsx +++ b/packages/dify-ui/src/popover/index.stories.tsx @@ -185,7 +185,7 @@ export const Infotip: Story = { /> Set which resource to use first when running models. The Trial quota will be used after the paid quota is exhausted. diff --git a/packages/dify-ui/src/popover/index.tsx b/packages/dify-ui/src/popover/index.tsx index 7082046cf8b..0fadcfc95ca 100644 --- a/packages/dify-ui/src/popover/index.tsx +++ b/packages/dify-ui/src/popover/index.tsx @@ -74,8 +74,6 @@ type PopoverContentProps = { sideOffset?: number alignOffset?: number className?: string - popupClassName?: string - popupProps?: Omit } function PopoverContent({ @@ -84,23 +82,15 @@ function PopoverContent({ sideOffset = 8, alignOffset = 0, className, - popupClassName, - popupProps, }: PopoverContentProps) { return ( - + {children} diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-button.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-button.tsx index 846b01e1711..6521fcdf73d 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-button.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-button.tsx @@ -26,7 +26,7 @@ const ConfigBtn: FC = ({ className, hasConfigured, children, ...popupProp diff --git a/web/app/components/access-rules-editor/add-access-subject-popover.tsx b/web/app/components/access-rules-editor/add-access-subject-popover.tsx index c86e2ee4692..4b8d7590ee0 100644 --- a/web/app/components/access-rules-editor/add-access-subject-popover.tsx +++ b/web/app/components/access-rules-editor/add-access-subject-popover.tsx @@ -6,7 +6,7 @@ import { Avatar } from '@langgenius/dify-ui/avatar' import { Button } from '@langgenius/dify-ui/button' import { cn } from '@langgenius/dify-ui/cn' import { InputGroup, InputGroupAddon, InputGroupInput } from '@langgenius/dify-ui/input-group' -import { Popover, PopoverContent, PopoverTrigger } from '@langgenius/dify-ui/popover' +import { Popover, PopoverContent, PopoverTitle, PopoverTrigger } from '@langgenius/dify-ui/popover' import { memo, useCallback, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import Loading from '@/app/components/base/loading' @@ -60,6 +60,7 @@ function AddAccessSubjectPopover({ }, []) const addExceptionLabel = t(($) => $['accessRule.addException'], { ns: 'permission' }) + const addMembersTitle = t(($) => $['accessRule.addMembersTitle'], { ns: 'permission' }) const addLabel = t(($) => $['operation.add'], { ns: 'common' }) const addedLabel = t(($) => $['operation.added'], { ns: 'common' }) @@ -76,12 +77,9 @@ function AddAccessSubjectPopover({ $['accessRule.addMembersTitle'], { ns: 'permission' }), - }} + className="w-[344px] max-w-[calc(100vw-32px)] overflow-hidden bg-components-panel-bg-blur p-0 shadow-lg backdrop-blur-[5px]" > + {addMembersTitle}
{searchLabel} diff --git a/web/app/components/app/app-publisher/publisher-content/publisher-panel/index.tsx b/web/app/components/app/app-publisher/publisher-content/publisher-panel/index.tsx index c6417c24a02..e106fee9c28 100644 --- a/web/app/components/app/app-publisher/publisher-content/publisher-panel/index.tsx +++ b/web/app/components/app/app-publisher/publisher-content/publisher-panel/index.tsx @@ -44,7 +44,7 @@ export function PublisherPanel({ placement="bottom-end" sideOffset={4} alignOffset={crossAxisOffset} - popupClassName="border-none bg-transparent shadow-none" + className="border-none bg-transparent shadow-none" >
{showBuiltInPublisher ? ( diff --git a/web/app/components/app/configuration/config-vision/param-config.tsx b/web/app/components/app/configuration/config-vision/param-config.tsx index b39b917d56b..6f36714faea 100644 --- a/web/app/components/app/configuration/config-vision/param-config.tsx +++ b/web/app/components/app/configuration/config-vision/param-config.tsx @@ -24,7 +24,7 @@ const ParamsConfig: FC = () => {
diff --git a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx index c2ab2c6b940..edd5fc68588 100644 --- a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx +++ b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx @@ -274,7 +274,7 @@ const AgentTools: FC = () => { } /> - + {t(($) => $.toolRemoved, { ns: 'tools' })} diff --git a/web/app/components/app/configuration/configuration-view/legacy-agent-badge.tsx b/web/app/components/app/configuration/configuration-view/legacy-agent-badge.tsx index 7190eb8b228..082445dd9ba 100644 --- a/web/app/components/app/configuration/configuration-view/legacy-agent-badge.tsx +++ b/web/app/components/app/configuration/configuration-view/legacy-agent-badge.tsx @@ -23,7 +23,7 @@ export function LegacyAgentBadge() {
{description}
= ({ {options.length > 0 ? (
diff --git a/web/app/components/app/deploy/shared/version-label.tsx b/web/app/components/app/deploy/shared/version-label.tsx index 8eb8559cff3..1f25e7ad80c 100644 --- a/web/app/components/app/deploy/shared/version-label.tsx +++ b/web/app/components/app/deploy/shared/version-label.tsx @@ -61,7 +61,7 @@ export function VersionLabel({ />
{name} diff --git a/web/app/components/app/log/model-info.tsx b/web/app/components/app/log/model-info.tsx index d33836d447b..93ea73179f1 100644 --- a/web/app/components/app/log/model-info.tsx +++ b/web/app/components/app/log/model-info.tsx @@ -69,7 +69,7 @@ const ModelInfo: FC = ({ model }) => {
diff --git a/web/app/components/app/type-selector/index.tsx b/web/app/components/app/type-selector/index.tsx index 14af654dbd9..577b8278b89 100644 --- a/web/app/components/app/type-selector/index.tsx +++ b/web/app/components/app/type-selector/index.tsx @@ -63,7 +63,7 @@ const AppTypeSelector = ({ value, onChange }: AppSelectorProps) => {