diff --git a/CHANGELOG.md b/CHANGELOG.md index 54a38afe..2fb9a06f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +### Added +- SFTP destinations: **upload an SSH private key file** in the Add/Edit Destination modal instead of pasting it (reads the file into the key field client-side; pasting still works). + +### Changed +- Add/Edit Destination modal: give `.modal-content` a `msbackup` class with a 1rem padding frame (Bootstrap's `.modal-content` has no padding of its own), styled in the WAM stylesheet. + ### Fixed - Pre-update backup now shows an admin notification on **every** outcome (success / warning / failure) — previously a *successful* pre-update backup fired nothing, so it looked like the notification wasn't working. (#192) diff --git a/source/packages/com_mokosuitebackup/media/css/admin.css b/source/packages/com_mokosuitebackup/media/css/admin.css index 8fcaf02d..2223c485 100644 --- a/source/packages/com_mokosuitebackup/media/css/admin.css +++ b/source/packages/com_mokosuitebackup/media/css/admin.css @@ -2,30 +2,36 @@ * MokoSuiteBackup — admin styles (loaded via the Joomla Web Asset Manager). */ -/* Add/Edit Destination modal — comfortable, consistent spacing */ -#remoteModal .modal-header, -#remoteModal .modal-footer { - padding: 1rem 1.75rem; +/* Add/Edit Destination modal. + * Bootstrap's .modal-content has no padding of its own (its header/body/footer + * children provide it), which made the modal feel cramped against its border. + * Give the container a comfortable 1rem frame via the .msbackup namespace and let + * the inner sections align to it (no double horizontal padding). */ +.modal-content.msbackup { + padding: 1rem; } -#remoteModal .modal-body { - padding: 1.5rem 1.75rem; +.modal-content.msbackup .modal-header, +.modal-content.msbackup .modal-body, +.modal-content.msbackup .modal-footer { + padding-left: 0; + padding-right: 0; } -#remoteModal .modal-body .row + .row, -#remoteModal .remote-type-fields { +.modal-content.msbackup .modal-body .row + .row, +.modal-content.msbackup .remote-type-fields { margin-top: 0.25rem; } -#remoteModal hr { - margin: 1.5rem 0; +.modal-content.msbackup hr { + margin: 1rem 0; opacity: 0.12; } -#remoteModal .form-label { +.modal-content.msbackup .form-label { margin-bottom: 0.35rem; } -#remoteModal .form-check.form-switch { +.modal-content.msbackup .form-check.form-switch { padding-top: 0.15rem; } diff --git a/source/packages/com_mokosuitebackup/tmpl/profile/edit.php b/source/packages/com_mokosuitebackup/tmpl/profile/edit.php index 7dc1e5ce..cd36107e 100644 --- a/source/packages/com_mokosuitebackup/tmpl/profile/edit.php +++ b/source/packages/com_mokosuitebackup/tmpl/profile/edit.php @@ -123,7 +123,7 @@ $token = Session::getFormToken();