From 173b3001a4cd2ac5b0431169cd5d329e0ba0ea07 Mon Sep 17 00:00:00 2001 From: Mitul Shah Date: Fri, 6 Aug 2021 12:29:21 +0000 Subject: [PATCH] [FIX] website_slides: avoid scroll while creating section during tour Currently, during the slide tour, while adding 'Section' from the website, the modal is opened, and the tour/bubble for this step is added at the bottom of the input which introduces a vertical scrollbar to this simple modal which looks ugly. This commit removes this step (and thus bubble for input), and simply provides a placeholder for this input. And, for the section modal next step ('Save' button), we simply improve the wordings of the message, which now asks the user to pick a name for the section first. The same issue also happens while uploading new 'Content' from the website, and so to avoid scrollbar here, this commit also adds little bottom margin for the anchor (so that there's enough space for tour bubble). Task-2616529 closes odoo/odoo#75976 X-original-commit: 7757c5bfd3c6ef760035bcae9cfda9c919fb773e Signed-off-by: Thibault Delavallee (tde) --- addons/website_slides/static/src/js/tours/slides_tour.js | 6 +----- addons/website_slides/static/src/xml/slide_management.xml | 2 +- .../website_slides/static/src/xml/website_slides_upload.xml | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/addons/website_slides/static/src/js/tours/slides_tour.js b/addons/website_slides/static/src/js/tours/slides_tour.js index db722a75bfc..aa9c159e3f2 100644 --- a/addons/website_slides/static/src/js/tours/slides_tour.js +++ b/addons/website_slides/static/src/js/tours/slides_tour.js @@ -35,13 +35,9 @@ tour.register('slides_tour', { trigger: '.o_wslides_js_slide_section_add', content: Markup(_t("Congratulations, your course has been created, but there isn't any content yet. First, let's add a Section to give your course a structure.")), position: 'bottom', -}, { - trigger: 'input[name="name"]', - content: Markup(_t("A good course has structure and a table of content. Your first section will be the Introduction.")), - position: 'bottom', }, { trigger: 'button.btn-primary', - content: Markup(_t("Click on Save to apply changes.")), + content: Markup(_t("A good course has a structure. Pick a name for your first section and click Save to create it.")), position: 'bottom', width: 260, }, { diff --git a/addons/website_slides/static/src/xml/slide_management.xml b/addons/website_slides/static/src/xml/slide_management.xml index e030a756375..45818e03add 100644 --- a/addons/website_slides/static/src/xml/slide_management.xml +++ b/addons/website_slides/static/src/xml/slide_management.xml @@ -21,7 +21,7 @@
- +
diff --git a/addons/website_slides/static/src/xml/website_slides_upload.xml b/addons/website_slides/static/src/xml/website_slides_upload.xml index 99cf1fdef6e..2174942e461 100644 --- a/addons/website_slides/static/src/xml/website_slides_upload.xml +++ b/addons/website_slides/static/src/xml/website_slides_upload.xml @@ -13,7 +13,7 @@ Slide Type Selection template --> -
+