From 3623a5421df8198651d8e8a9d676f0661c307cf9 Mon Sep 17 00:00:00 2001 From: maTh Date: Tue, 19 Oct 2021 15:08:32 +0200 Subject: enhancement subscription management page (#3893) * wip * wip2 * i18n * Update app/views/helpers/category/update.phtml Co-authored-by: Frans de Jonge * fixed box layout * Revert "i18n" This reverts commit a2e4d8ace661df806997a8310f069a67d71910f4. * i18n This reverts commit 55236930cfc7165ff883ea2a9538d3502b8922eb. Co-authored-by: Frans de Jonge --- p/scripts/category.js | 4 ++-- p/themes/base-theme/template.css | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'p') diff --git a/p/scripts/category.js b/p/scripts/category.js index 3e09fc4c7..2a24bc47d 100644 --- a/p/scripts/category.js +++ b/p/scripts/category.js @@ -24,8 +24,8 @@ function dragend_process(t) { const p = t.parentElement; t.remove(); - if (p.childElementCount <= 0) { - p.insertAdjacentHTML('beforeend', '
  • ' + context.i18n.category_empty + '
  • '); + if (p.childElementCount <= 1) { + p.insertAdjacentHTML('afterbegin', '
  • ' + context.i18n.category_empty + '
  • '); } } } diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index c98277a01..ccbb33d3b 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -465,7 +465,7 @@ a.btn { /*=== Boxes */ .box { - margin: 20px 10px; + margin: 20px 20px 20px 0; display: inline-block; max-width: 95%; width: 20rem; @@ -473,6 +473,11 @@ a.btn { vertical-align: top; } +.box.visible-semi { + border-style: dashed; + opacity: 0.5; +} + .box .box-title { position: relative; font-size: 1.2rem; -- cgit v1.2.3