From 8a27e5336bc59adc85df928ddc2d3398959c9ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Mon, 7 Sep 2020 13:40:30 +0000 Subject: [PATCH] [FIX] survey: fix minor frontend layout issues This commit fixes 2 minor issues with the survey frontend layout: - When hovering an answer option, the word "key"'s offset only worked properly for a 3 letters word. This does not comply with possible translations and the scss was adapted to display correctly with any string. - The "Continue or press Enter" block needlessly took 2 rows of space if the text was slightly longer. We provided more space to account for possible longer translations. Side note: we also added parenthesis between the "add" property on the "wrapwrap" element XML inherit to ease subsequent overrides. (Otherwise, the next override would add its own value within our "if else" statement and that could cause issues). Task 2334823 closes odoo/odoo#57216 X-original-commit: f3237a2945ae522218af5a7089097c8d561af2c6 Signed-off-by: awa-odoo --- addons/survey/static/src/scss/survey_form.scss | 3 +-- addons/survey/views/survey_templates.xml | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/addons/survey/static/src/scss/survey_form.scss b/addons/survey/static/src/scss/survey_form.scss index 956430a7696..54529c90ca2 100644 --- a/addons/survey/static/src/scss/survey_form.scss +++ b/addons/survey/static/src/scss/survey_form.scss @@ -212,8 +212,7 @@ nav#oe_main_menu_navbar { font-size: smaller; top: -1px; &.o_survey_key { - width: inherit; - right: 10px; + right: 21px; border: 1px solid $primary; border-right: 0px; height: 25px; diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index cf76843f186..e42c863eaa7 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -8,7 +8,7 @@ - + @@ -185,7 +185,7 @@
-
+
-
+