diff --git a/src/pages/options/sections/rules/rule-group-card.tsx b/src/pages/options/sections/rules/rule-group-card.tsx index ae690e6..8dece91 100644 --- a/src/pages/options/sections/rules/rule-group-card.tsx +++ b/src/pages/options/sections/rules/rule-group-card.tsx @@ -26,6 +26,7 @@ import type { InitdRule, Rule } from '@/share/core/types'; import { VIRTUAL_KEY, TABLE_NAMES_ARR } from '@/share/core/constant'; import useMarkCommon from '@/share/hooks/use-mark-common'; import RuleContentSwitcher from '@/share/components/rule-content-switcher'; +import { textEllipsis } from '@/share/pages/styles'; import { remove, toggleRule } from './utils'; import type { ColumnProps, RowSelectionProps } from '@douyinfe/semi-ui/lib/es/table'; @@ -88,7 +89,7 @@ const RuleGroupCard = (props: RuleCardProps) => { dataIndex: 'name', render: (value: string, item: InitdRule) => ( } style={{ maxWidth: '300px' }}> -
{value}
+
{value}
), }, @@ -103,7 +104,7 @@ const RuleGroupCard = (props: RuleCardProps) => { title: t('action'), className: 'cell-action', dataIndex: 'action', - width: 128, + width: 160, render: (v, item: InitdRule) => { const isMarked = commonRuleKeys.includes(item[VIRTUAL_KEY]); return ( @@ -114,7 +115,7 @@ const RuleGroupCard = (props: RuleCardProps) => {