mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
style(ui): move lucide icon color rule and add warning icon to caution text
Move the lucide icon color rule into the media query block for consistency. Add AlertTriangleIcon to caution text in AgentModal for better visual warning.
This commit is contained in:
parent
6c63146556
commit
f429e3fc01
@ -19,6 +19,10 @@
|
|||||||
/* margin: 0; */
|
/* margin: 0; */
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lucide:not(.lucide-custom) {
|
||||||
|
color: var(--color-icon);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*:focus {
|
*:focus {
|
||||||
@ -171,10 +175,6 @@ ul {
|
|||||||
display: flow-root;
|
display: flow-root;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lucide:not(.lucide-custom) {
|
|
||||||
color: var(--color-icon);
|
|
||||||
}
|
|
||||||
|
|
||||||
::highlight(search-matches) {
|
::highlight(search-matches) {
|
||||||
background-color: var(--color-background-highlight);
|
background-color: var(--color-background-highlight);
|
||||||
color: var(--color-highlight);
|
color: var(--color-highlight);
|
||||||
|
|||||||
@ -33,6 +33,7 @@ import {
|
|||||||
Tool,
|
Tool,
|
||||||
UpdateAgentForm
|
UpdateAgentForm
|
||||||
} from '@renderer/types'
|
} from '@renderer/types'
|
||||||
|
import { AlertTriangleIcon } from 'lucide-react'
|
||||||
import { ChangeEvent, FormEvent, ReactNode, useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
import { ChangeEvent, FormEvent, ReactNode, useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
@ -432,7 +433,8 @@ export const AgentModal: React.FC<Props> = ({ agent, trigger, isOpen: _isOpen, o
|
|||||||
{t(item.behaviorKey, item.behaviorFallback)}
|
{t(item.behaviorKey, item.behaviorFallback)}
|
||||||
</span>
|
</span>
|
||||||
{item.caution ? (
|
{item.caution ? (
|
||||||
<span className="text-danger-500 text-xs">
|
<span className="flex items-center gap-1 text-danger-500 text-xs">
|
||||||
|
<AlertTriangleIcon size={12} className="text-danger" />
|
||||||
{t(
|
{t(
|
||||||
'agent.settings.tooling.permissionMode.bypassPermissions.warning',
|
'agent.settings.tooling.permissionMode.bypassPermissions.warning',
|
||||||
'Use with caution — all tools will run without asking for approval.'
|
'Use with caution — all tools will run without asking for approval.'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user