diff --git a/web/app/components/plugins/base/key-value-item.tsx b/web/app/components/plugins/base/key-value-item.tsx index faa81f64e7..c249284bb9 100644 --- a/web/app/components/plugins/base/key-value-item.tsx +++ b/web/app/components/plugins/base/key-value-item.tsx @@ -2,7 +2,6 @@ import type { FC } from 'react' import React, { useCallback, useEffect, useState } from 'react' import copy from 'copy-to-clipboard' - import { RiClipboardLine, } from '@remixicon/react' @@ -11,16 +10,19 @@ import { ClipboardCheck } from '../../base/icons/src/vender/line/files' import Tooltip from '../../base/tooltip' import cn from '@/utils/classnames' import ActionButton from '@/app/components/base/action-button' + type Props = { label: string labelWidthClassName?: string value: string + valueMaxWidthClassName?: string } const KeyValueItem: FC = ({ label, labelWidthClassName = 'w-10', value, + valueMaxWidthClassName = 'max-w-[162px]', }) => { const { t } = useTranslation() const [isCopied, setIsCopied] = useState(false) @@ -46,7 +48,7 @@ const KeyValueItem: FC = ({
{label}
- + {value} diff --git a/web/app/components/plugins/plugin-page/plugin-info.tsx b/web/app/components/plugins/plugin-page/plugin-info.tsx index 6e30834c49..abd297905a 100644 --- a/web/app/components/plugins/plugin-page/plugin-info.tsx +++ b/web/app/components/plugins/plugin-page/plugin-info.tsx @@ -4,6 +4,7 @@ import React from 'react' import { useTranslation } from 'react-i18next' import KeyValueItem from '../base/key-value-item' import Modal from '../../base/modal' +import { convertRepoToUrl } from '../install-plugin/utils' const i18nPrefix = 'plugin.pluginInfoModal' type Props = { @@ -30,7 +31,7 @@ const PlugInfo: FC = ({ closable >
- {repository && } + {repository && } {release && } {packageName && }