Skip to content

Commit fe9985c

Browse files
authored
🐛 Fix On the Agent page, the button shows an inappropriate border color when hovered.
2 parents 4cedbfe + 6795d6b commit fe9985c

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

frontend/app/[locale]/setup/agentSetup/components/AgentConfigurationSection.tsx

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ export interface AgentConfigurationSectionProps {
2020
agentDescription?: string;
2121
onAgentNameChange?: (name: string) => void;
2222
onAgentDescriptionChange?: (description: string) => void;
23-
agentDisplayName?: string;
24-
onAgentDisplayNameChange?: (displayName: string) => void;
2523
isEditingMode?: boolean;
2624
mainAgentModel?: string;
2725
mainAgentMaxStep?: number;
@@ -55,8 +53,6 @@ export default function AgentConfigurationSection({
5553
agentDescription = '',
5654
onAgentNameChange,
5755
onAgentDescriptionChange,
58-
agentDisplayName = '',
59-
onAgentDisplayNameChange,
6056
isEditingMode = false,
6157
mainAgentModel = '',
6258
mainAgentMaxStep = 5,
@@ -188,21 +184,6 @@ export default function AgentConfigurationSection({
188184
// Render individual content sections
189185
const renderAgentInfo = () => (
190186
<div className="p-4 agent-info-content">
191-
{/* Agent Display Name */}
192-
<div className="mb-2">
193-
<label className="block text-sm font-medium text-gray-700 mb-1">
194-
{t('agent.displayName')}:
195-
</label>
196-
<input
197-
type="text"
198-
value={agentDisplayName}
199-
onChange={(e) => onAgentDisplayNameChange?.(e.target.value)}
200-
placeholder={t('agent.displayNamePlaceholder')}
201-
className="w-full px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 box-border"
202-
disabled={!isEditingMode}
203-
/>
204-
</div>
205-
206187
{/* Agent Name */}
207188
<div className="mb-2">
208189
<label className="block text-sm font-medium text-gray-700 mb-1">
@@ -567,6 +548,26 @@ export default function AgentConfigurationSection({
567548
font-size: 14px;
568549
color: #666;
569550
}
551+
552+
/* Fix Ant Design button hover border color issues - ensure consistent color scheme */
553+
.responsive-button.ant-btn:hover {
554+
border-color: inherit !important;
555+
}
556+
557+
/* Blue button: hover background blue-600, border should also be blue-600 */
558+
.bg-blue-500.hover\\:bg-blue-600.border-blue-500.hover\\:border-blue-600.ant-btn:hover {
559+
border-color: #2563eb !important; /* blue-600 */
560+
}
561+
562+
/* Green button: hover background green-600, border should also be green-600 */
563+
.bg-green-500.hover\\:bg-green-600.border-green-500.hover\\:border-green-600.ant-btn:hover {
564+
border-color: #16a34a !important; /* green-600 */
565+
}
566+
567+
/* Red button: hover background red-600, border should also be red-600 */
568+
.bg-red-500.hover\\:bg-red-600.border-red-500.hover\\:border-red-600.ant-btn:hover {
569+
border-color: #dc2626 !important; /* red-600 */
570+
}
570571
`}</style>
571572

572573
<div className="content-scroll h-full overflow-y-auto agent-config-content">
@@ -723,4 +724,4 @@ export default function AgentConfigurationSection({
723724
</Modal>
724725
</div>
725726
)
726-
}
727+
}

0 commit comments

Comments
 (0)