From 3227c6c04305bb36d08db586791f3d089ee960bc Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 1 Jan 2026 23:24:34 +0530 Subject: [PATCH] refactor: enhance styling and layout of connector edit view - Adjusted padding and height properties for action buttons in the connector edit view to improve UI consistency and usability. - Ensured that button sizes are uniform across different screen sizes for a better user experience. --- .../connector-configs/views/connector-edit-view.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/surfsense_web/components/assistant-ui/connector-popup/connector-configs/views/connector-edit-view.tsx b/surfsense_web/components/assistant-ui/connector-popup/connector-configs/views/connector-edit-view.tsx index d6c1faf98..e57861d55 100644 --- a/surfsense_web/components/assistant-ui/connector-popup/connector-configs/views/connector-edit-view.tsx +++ b/surfsense_web/components/assistant-ui/connector-popup/connector-configs/views/connector-edit-view.tsx @@ -239,7 +239,7 @@ export const ConnectorEditView: FC = ({ {/* Fixed Footer - Action buttons */} -
+
{showDisconnectConfirm ? (
@@ -251,7 +251,7 @@ export const ConnectorEditView: FC = ({ size="sm" onClick={handleDisconnectConfirm} disabled={isDisconnecting} - className="text-xs sm:text-sm flex-1 sm:flex-initial" + className="text-xs sm:text-sm flex-1 sm:flex-initial h-10 sm:h-auto py-2 sm:py-2" > {isDisconnecting ? ( <> @@ -267,7 +267,7 @@ export const ConnectorEditView: FC = ({ size="sm" onClick={handleDisconnectCancel} disabled={isDisconnecting} - className="text-xs sm:text-sm flex-1 sm:flex-initial" + className="text-xs sm:text-sm flex-1 sm:flex-initial h-10 sm:h-auto py-2 sm:py-2" > Cancel @@ -276,10 +276,9 @@ export const ConnectorEditView: FC = ({ ) : (