diff --git a/frontend/src/pages/clients/ClientFormModal.css b/frontend/src/pages/clients/ClientFormModal.css index 3e5803424..52c695eed 100644 --- a/frontend/src/pages/clients/ClientFormModal.css +++ b/frontend/src/pages/clients/ClientFormModal.css @@ -3,3 +3,29 @@ .client-form-modal .ant-tabs-content > .ant-form-item:last-child { margin-bottom: 0; } + +/* Four labelled buttons are wider than a phone and would widen the modal past the + screen, so below the md breakpoint the two extra actions keep only their icon. */ +.client-form-footer { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 8px; +} + +.client-form-footer-actions { + display: flex; + gap: 8px; + margin-inline-start: auto; +} + +@media (max-width: 767px) { + .client-form-footer-extra.ant-btn { + padding-inline: 0; + width: 32px; + } + + .client-form-footer-extra.ant-btn > span:not(.ant-btn-icon) { + display: none; + } +} diff --git a/frontend/src/pages/clients/ClientFormModal.tsx b/frontend/src/pages/clients/ClientFormModal.tsx index e66963c95..a55c11173 100644 --- a/frontend/src/pages/clients/ClientFormModal.tsx +++ b/frontend/src/pages/clients/ClientFormModal.tsx @@ -890,7 +890,7 @@ export default function ClientFormModal({ onCancel={close} afterClose={() => setActiveTab('basic')} footer={ -