Skip to content

[Bug] Agent页面按钮鼠标悬浮时会有不合适的边框颜色 #940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ export interface AgentConfigurationSectionProps {
agentDescription?: string;
onAgentNameChange?: (name: string) => void;
onAgentDescriptionChange?: (description: string) => void;
agentDisplayName?: string;
onAgentDisplayNameChange?: (displayName: string) => void;
isEditingMode?: boolean;
mainAgentModel?: string;
mainAgentMaxStep?: number;
Expand Down Expand Up @@ -55,8 +53,6 @@ export default function AgentConfigurationSection({
agentDescription = '',
onAgentNameChange,
onAgentDescriptionChange,
agentDisplayName = '',
onAgentDisplayNameChange,
isEditingMode = false,
mainAgentModel = '',
mainAgentMaxStep = 5,
Expand Down Expand Up @@ -188,21 +184,6 @@ export default function AgentConfigurationSection({
// Render individual content sections
const renderAgentInfo = () => (
<div className="p-4 agent-info-content">
{/* Agent Display Name */}
<div className="mb-2">
<label className="block text-sm font-medium text-gray-700 mb-1">
{t('agent.displayName')}:
</label>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好,首先很高兴能够共同贡献Nexent。根据/frontend/app/%5Blocale%5D/setup/agentSetup/components/PromptManager.tsx#L558可以看到这里有在使用onAgentDisplayNameChange,多次追溯可以发现 在/frontend/services/agentConfigService.ts#L324将displayName下发给接口进行存储,所以请再次确认这里是否可以删除,感谢~

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

收到,感谢指正,我再检查一下相关问题

<input
type="text"
value={agentDisplayName}
onChange={(e) => onAgentDisplayNameChange?.(e.target.value)}
placeholder={t('agent.displayNamePlaceholder')}
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"
disabled={!isEditingMode}
/>
</div>

{/* Agent Name */}
<div className="mb-2">
<label className="block text-sm font-medium text-gray-700 mb-1">
Expand Down Expand Up @@ -567,6 +548,26 @@ export default function AgentConfigurationSection({
font-size: 14px;
color: #666;
}

/* Fix Ant Design button hover border color issues - ensure consistent color scheme */
.responsive-button.ant-btn:hover {
border-color: inherit !important;
}

/* Blue button: hover background blue-600, border should also be blue-600 */
.bg-blue-500.hover\\:bg-blue-600.border-blue-500.hover\\:border-blue-600.ant-btn:hover {
border-color: #2563eb !important; /* blue-600 */
}

/* Green button: hover background green-600, border should also be green-600 */
.bg-green-500.hover\\:bg-green-600.border-green-500.hover\\:border-green-600.ant-btn:hover {
border-color: #16a34a !important; /* green-600 */
}

/* Red button: hover background red-600, border should also be red-600 */
.bg-red-500.hover\\:bg-red-600.border-red-500.hover\\:border-red-600.ant-btn:hover {
border-color: #dc2626 !important; /* red-600 */
}
`}</style>

<div className="content-scroll h-full overflow-y-auto agent-config-content">
Expand Down Expand Up @@ -723,4 +724,4 @@ export default function AgentConfigurationSection({
</Modal>
</div>
)
}
}