💄 style(channel): unify text link styles in EditTagModal with EditChannel
Update text link styling in EditTagModal.js to match the consistent design
pattern used in EditChannel.js. Changed className from 'text-blue-500 cursor-pointer'
to '!text-semi-color-primary cursor-pointer' for template-related action links
("填入模板", "清空重定向", "不更改").
This change ensures:
- Visual consistency across channel editing components
- Better theme adaptability using Semi Design color variables
- Adherence to established design patterns in the codebase
Files modified:
- web/src/pages/Channel/EditTagModal.js
This commit is contained in:
@@ -412,19 +412,19 @@ const EditTagModal = (props) => {
|
|||||||
/>
|
/>
|
||||||
<Space className="mt-2">
|
<Space className="mt-2">
|
||||||
<Text
|
<Text
|
||||||
className="text-blue-500 cursor-pointer"
|
className="!text-semi-color-primary cursor-pointer"
|
||||||
onClick={() => handleInputChange('model_mapping', JSON.stringify(MODEL_MAPPING_EXAMPLE, null, 2))}
|
onClick={() => handleInputChange('model_mapping', JSON.stringify(MODEL_MAPPING_EXAMPLE, null, 2))}
|
||||||
>
|
>
|
||||||
{t('填入模板')}
|
{t('填入模板')}
|
||||||
</Text>
|
</Text>
|
||||||
<Text
|
<Text
|
||||||
className="text-blue-500 cursor-pointer"
|
className="!text-semi-color-primary cursor-pointer"
|
||||||
onClick={() => handleInputChange('model_mapping', JSON.stringify({}, null, 2))}
|
onClick={() => handleInputChange('model_mapping', JSON.stringify({}, null, 2))}
|
||||||
>
|
>
|
||||||
{t('清空重定向')}
|
{t('清空重定向')}
|
||||||
</Text>
|
</Text>
|
||||||
<Text
|
<Text
|
||||||
className="text-blue-500 cursor-pointer"
|
className="!text-semi-color-primary cursor-pointer"
|
||||||
onClick={() => handleInputChange('model_mapping', '')}
|
onClick={() => handleInputChange('model_mapping', '')}
|
||||||
>
|
>
|
||||||
{t('不更改')}
|
{t('不更改')}
|
||||||
|
|||||||
Reference in New Issue
Block a user