mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 23:59:45 +08:00
refactor(ModelSettings): move ResetIcon inside Button component for consistency
This commit is contained in:
parent
44378cc879
commit
9df850b226
@ -75,7 +75,9 @@ const ModelSettings: FC = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
{defaultModelValue !== getModelUniqId(DEFAULT_MODEL_MAP.assistant) && (
|
{defaultModelValue !== getModelUniqId(DEFAULT_MODEL_MAP.assistant) && (
|
||||||
<Tooltip title={t('common.reset')}>
|
<Tooltip title={t('common.reset')}>
|
||||||
<Button icon={<ResetIcon size={16} />} style={{ marginLeft: 8 }} onClick={resetDefaultAssistantModel} />
|
<Button style={{ marginLeft: 8 }} onClick={resetDefaultAssistantModel}>
|
||||||
|
<ResetIcon size={16} />
|
||||||
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
</RowFlex>
|
</RowFlex>
|
||||||
@ -104,7 +106,9 @@ const ModelSettings: FC = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
{defaultQuickModel !== getModelUniqId(DEFAULT_MODEL_MAP.quick) && (
|
{defaultQuickModel !== getModelUniqId(DEFAULT_MODEL_MAP.quick) && (
|
||||||
<Tooltip title={t('common.reset')}>
|
<Tooltip title={t('common.reset')}>
|
||||||
<Button icon={<ResetIcon size={16} />} style={{ marginLeft: 8 }} onClick={resetQuickModel} />
|
<Button style={{ marginLeft: 8 }} onClick={resetQuickModel}>
|
||||||
|
<ResetIcon size={16} />
|
||||||
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
</RowFlex>
|
</RowFlex>
|
||||||
@ -132,7 +136,9 @@ const ModelSettings: FC = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
{defaultTranslateModel !== getModelUniqId(DEFAULT_MODEL_MAP.translate) && (
|
{defaultTranslateModel !== getModelUniqId(DEFAULT_MODEL_MAP.translate) && (
|
||||||
<Tooltip title={t('common.reset')}>
|
<Tooltip title={t('common.reset')}>
|
||||||
<Button icon={<ResetIcon size={16} />} style={{ marginLeft: 8 }} onClick={resetTranslateModel} />
|
<Button style={{ marginLeft: 8 }} onClick={resetTranslateModel}>
|
||||||
|
<ResetIcon size={16} />
|
||||||
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
</RowFlex>
|
</RowFlex>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user