From ae95f06bdba97266267ddfab5a68dcd7fc773d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Thu, 26 Aug 2021 14:11:40 +0100 Subject: [PATCH] Style tweaks for question edit and preview --- www/form/app-form.less | 3 +-- www/form/inner.js | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/www/form/app-form.less b/www/form/app-form.less index e630c8ca1..d763ed204 100644 --- a/www/form/app-form.less +++ b/www/form/app-form.less @@ -344,8 +344,6 @@ color: @cp_sidebar-hint; margin-bottom: 10px; padding: 0; - text-align: center; - font-weight: bold; } .cp-form-block-drag-handle { @@ -404,6 +402,7 @@ .cp-form-required-radio { flex-direction: row; display: flex; + margin-bottom: 20px; span { margin-right: 10px; &.cp-radio-mark { diff --git a/www/form/inner.js b/www/form/inner.js index 3c3aca31b..b1904bb8e 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -87,8 +87,10 @@ define([ var saveAndCancelOptions = function (cb) { Messages.form_preview_button = "Preview"; // XXX - var cancelBlock = h('button.btn.btn-secondary.cp-form-preview-button', - Messages.form_preview_button); + var cancelBlock = h('button.btn.btn-default.cp-form-preview-button',[ + h('i.fa.fa-eye'), + Messages.form_preview_button + ]); $(cancelBlock).click(function () { cb(undefined, true); }); return cancelBlock;