From e6dfdb8b567d763fbf5394aa08037af47ecc10cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Mon, 7 Jun 2021 12:38:53 +0100 Subject: [PATCH 01/37] Adjust spacing --- www/form/app-form.less | 5 +++++ www/form/inner.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/www/form/app-form.less b/www/form/app-form.less index 278e1d1db..1469310fa 100644 --- a/www/form/app-form.less +++ b/www/form/app-form.less @@ -67,6 +67,9 @@ .cp-form-creator-settings { padding: 30px; + .cp-form-actions { + margin-top: 5px; + } & > div:not(:last-child) { margin-bottom: 20px; } @@ -90,6 +93,7 @@ div.cp-form-creator-content, div.cp-form-creator-results { max-width: 1000px; min-width: 300px; + margin-top: 10px; padding: 10px; display: flex; flex-flow: column; @@ -246,6 +250,7 @@ .cp-form-block-content { overflow-x: auto; .cp-form-page-break-edit { + font-size: 20px; text-align: center; padding: 10px; i { diff --git a/www/form/inner.js b/www/form/inner.js index fcf1cc349..f6469f2f2 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -2180,7 +2180,7 @@ define([ var refreshPublic = function () { $results.empty(); var makePublic = h('button.btn.btn-secondary', Messages.form_makePublic); - var makePublicDiv = h('div', makePublic); + var makePublicDiv = h('div.cp-form-actions', makePublic); if (content.answers.privateKey) { makePublicDiv = undefined; } var publicText = content.answers.privateKey ? Messages.form_isPublic : Messages.form_isPrivate; $results.append(h('span.cp-form-results-type', publicText)); From 14cebd32bbb5d51de8eea3011007981f12219014 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 7 Jun 2021 16:46:33 +0200 Subject: [PATCH 02/37] Fix syntax highlighting in form descriptions --- www/common/common-ui-elements.js | 1 + www/form/inner.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 011bb587b..60b0571c8 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1069,6 +1069,7 @@ define([ editor.replaceSelections(newTexts, 'around'); editor.focus(); }; + Messages.mdToolbar_embed = "Embed file"; // XXX for (var k in actions) { $('