From cdf801b857325a5ad7ece46541c9f951f92724e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Mon, 15 Mar 2021 14:43:30 +0000 Subject: [PATCH] Layout of broadcast send buttons --- www/admin/app-admin.less | 7 +++++-- www/admin/inner.js | 25 +++++++++++++++++-------- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/www/admin/app-admin.less b/www/admin/app-admin.less index ee9d7f30d..444c3010c 100644 --- a/www/admin/app-admin.less +++ b/www/admin/app-admin.less @@ -201,8 +201,11 @@ .cp-admin-broadcast-form { margin-top: 30px; - & > button:last-child { - margin-top: 30px !important; + .cp-broadcast-form-submit { + margin-top: 30px; + button { + margin-bottom: 10px !important; + } } .cp-broadcast-container { display: flex; diff --git a/www/admin/inner.js b/www/admin/inner.js index b680139ae..5925c6f29 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -1161,8 +1161,11 @@ define([ h('label', Messages.broadcast_translations), h('div.cp-broadcast-languages', boxes), container, - button, - noFallbackBtn + h('div.cp-broadcast-form-submit', [ + noFallbackBtn, + h('br'), + button + ]) ]); })(); return; @@ -1213,8 +1216,10 @@ define([ h('label', Messages.broadcast_end), end, h('br'), - button, - preview + h('div.cp-broadcast-form-submit', [ + button, + preview + ]) ]); })(); return; @@ -1242,8 +1247,10 @@ define([ $form.append([ $cbox[0], h('br'), - button, - preview + h('div.cp-broadcast-form-submit', [ + button, + preview + ]) ]); })(); return; @@ -1272,8 +1279,10 @@ define([ label, input, h('br'), - button, - preview + h('div.cp-broadcast-form-submit', [ + button, + preview + ]) ]); })(); return;