From 8e158a50d468d89224b224822fb979318d5efc03 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 11 Jun 2021 15:36:18 +0530 Subject: [PATCH 1/2] fix a typo in a translation key name --- www/common/translations/messages.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/translations/messages.json b/www/common/translations/messages.json index fe864e2aa..856a42c6a 100644 --- a/www/common/translations/messages.json +++ b/www/common/translations/messages.json @@ -1339,7 +1339,7 @@ "admin_checkupTitle": "Validate instance configuration", "admin_checkupHint": "CryptPad includes a page which automatically diagnoses common configuration issues and suggests how to correct them if necessary.", "admin_checkupButton": "Run diagnostics", - "admin_contentToContactTitle": "Consent to contact", + "admin_consentToContactTitle": "Consent to contact", "admin_consentToContactHint": "Server telemetry includes the admin contact email so that the developers can notify you of serious problems with the software or your configuration. It will never be shared, sold, or used for marketing purposes. Consent to contact if you'd like to be informed of critical issues in your server.", "admin_consentToContactLabel": "I consent", "admin_listMyInstanceTitle": "List my instance in public directories", From 62a6e99c3e68a75fb7d59eedc38535f960da2586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Fri, 11 Jun 2021 11:13:25 +0100 Subject: [PATCH 2/2] Style adjustments to "Add" menus --- www/form/app-form.less | 11 +++++++---- www/form/inner.js | 7 +++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/www/form/app-form.less b/www/form/app-form.less index 8fb892930..69be4a7cc 100644 --- a/www/form/app-form.less +++ b/www/form/app-form.less @@ -152,9 +152,9 @@ } .cp-form-creator-add-full { display: flex; - align-items: center; - margin: 50px 0px 100px 0px; - &> div:first-child { + flex-flow: column; + margin: 20px 0px 100px 0px; + &> div:first-child { // XXX + on the side border-right: 1px solid fade(@cryptpad_text_col, 25%); display: flex; height: 100%; @@ -162,14 +162,17 @@ padding-right: 10px; margin-right: 10px; i { - color: fade(@cryptpad_text_col, 25%); + color: @cryptpad_text_col; font-size: 30px; + width: 50px; + text-align: center; } } .cp-form-creator-control-inline { display: flex; flex-flow: column; justify-content: space-around; + margin-left: 50px; button:not(:last-child) { margin-right: 5px; } diff --git a/www/form/inner.js b/www/form/inner.js index 26d591320..bc3b579bb 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -1945,7 +1945,7 @@ define([ var full = !uid; var idx = content.order.indexOf(uid); var addControl = function (type) { - var btn = h('button.btn.btn-default', { + var btn = h('button.btn.btn-secondary', { title: full ? undefined : Messages['form_type_'+type] }, [ (TYPES[type] || STATIC_TYPES[type]).icon.cloneNode(), @@ -1990,10 +1990,13 @@ define([ $(add).toggleClass('displayed'); }); } + else { + $(add).append(h('span', Messages.tag_add)); + } var inlineCls = full ? '-full' : '-inline'; return h('div.cp-form-creator-add'+inlineCls, [ - h('div', add), + add, buttons ]);