refactor: standardize dialog components to use consistent DialogFooter styling
Remove custom styling from DialogFooter components across the application to ensure consistent appearance and behavior. All dialogs now follow the unified layout pattern defined in the base Dialog component. Changes: - Remove custom className overrides from DialogFooter in: - EndpointSpeedTest.tsx - CodexQuickWizardModal.tsx - CodexCommonConfigModal.tsx - ClaudeConfigEditor.tsx - Fix McpWizardModal content area padding (remove -mx-6 negative margin) - Fix McpPanel to use DialogFooter component instead of custom div All dialogs now consistently use: - DialogHeader: px-6 pt-6 pb-4 with border and background (built-in) - Content area: flex-1 overflow-y-auto px-6 py-4 - DialogFooter: px-6 pb-6 pt-4 with border and background (built-in) This ensures proper spacing, alignment, and visual consistency across all modal dialogs in the application.
This commit is contained in:
@@ -609,7 +609,7 @@ const EndpointSpeedTest: React.FC<EndpointSpeedTestProps> = ({
|
||||
)}
|
||||
</div>
|
||||
|
||||
<DialogFooter className="px-6 pb-6 pt-4 border-t border-gray-200 dark:border-gray-800 bg-gray-100 dark:bg-gray-800 m-0">
|
||||
<DialogFooter>
|
||||
<Button type="button" onClick={onClose} className="gap-2">
|
||||
<Save className="w-4 h-4" />
|
||||
{t("common.save")}
|
||||
|
||||
Reference in New Issue
Block a user