From b1bb3642e52ae1401bb06de130b17db48cff379e Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 2 May 2024 15:42:33 +0200 Subject: [PATCH] Improve context popup rendering (#30824) Before, lot of empty space when no labels or body: Screenshot 2024-05-02 at 13 51 29 After, empty space collapsed: Screenshot 2024-05-02 at 13 51 16 All `

` (unsuitable) and `` (discouraged in favor of css) tags are removed. --- web_src/js/components/.eslintrc.yaml | 1 + web_src/js/components/ContextPopup.vue | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/web_src/js/components/.eslintrc.yaml b/web_src/js/components/.eslintrc.yaml index 0d233442bc4..a79e96f330d 100644 --- a/web_src/js/components/.eslintrc.yaml +++ b/web_src/js/components/.eslintrc.yaml @@ -18,4 +18,5 @@ rules: vue/attributes-order: [0] vue/html-closing-bracket-spacing: [2, {startTag: never, endTag: never, selfClosingTag: never}] vue/max-attributes-per-line: [0] + vue/singleline-html-element-content-newline: [0] vue-scoped-css/enforce-style-type: [0] diff --git a/web_src/js/components/ContextPopup.vue b/web_src/js/components/ContextPopup.vue index e4e8bce1846..8f389ea003e 100644 --- a/web_src/js/components/ContextPopup.vue +++ b/web_src/js/components/ContextPopup.vue @@ -91,16 +91,22 @@ export default {