From d9290229f53d5137fd75a7f077e532aae3f43708 Mon Sep 17 00:00:00 2001 From: Tim Fischbach Date: Thu, 14 Dec 2023 10:46:13 +0100 Subject: [PATCH] Hide editor specific text area input inline help outside of editor The inline help recommends "open in new tab" to prevent users from having to reload the Pageflow entry. This only makes sense when actually editing a Pageflow entry. REDMINE-20511 --- .../pageflow/ui/input/text_area_input.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/assets/stylesheets/pageflow/ui/input/text_area_input.scss b/app/assets/stylesheets/pageflow/ui/input/text_area_input.scss index a1edf32c9..0b08dc2b8 100644 --- a/app/assets/stylesheets/pageflow/ui/input/text_area_input.scss +++ b/app/assets/stylesheets/pageflow/ui/input/text_area_input.scss @@ -174,4 +174,16 @@ border-bottom: solid 9px var(--ui-surface-color); border-left: solid 9px transparent; } + + // Hide inline help text that only makes sense when editing a + // Pageflow entry outside the editor + .open_in_new_tab_section .inline_help { + display: none; + } +} + +.editor .text_area_input { + .open_in_new_tab_section .inline_help { + display: block; + } }