From 0dfcf654f7edfe9a9884ba3eab317181fe0a29e0 Mon Sep 17 00:00:00 2001
From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr>
Date: Wed, 15 Jan 2025 14:39:42 +0100
Subject: [PATCH] Style survey button + fix one line question

---
 macao/assets/_custom.scss | 5 +++++
 macao/assets/quiz.js      | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/macao/assets/_custom.scss b/macao/assets/_custom.scss
index 76417be..d373e0e 100644
--- a/macao/assets/_custom.scss
+++ b/macao/assets/_custom.scss
@@ -72,6 +72,7 @@ select.sd-dropdown.inline-dropdown, input.sd-input.inline-input {
 
   .sd-question__header {
     margin-top: 0;
+    max-width: 150px;
   }
 }
 
@@ -113,6 +114,10 @@ a.active {
   }
 }
 
+.sd-btn {
+  padding: 5px 10px !important;
+}
+
 // ***********************************
 // Comment on page
 // ***********************************
diff --git a/macao/assets/quiz.js b/macao/assets/quiz.js
index 4569e11..8718e73 100644
--- a/macao/assets/quiz.js
+++ b/macao/assets/quiz.js
@@ -116,6 +116,8 @@ $(function () {
     survey.applyTheme(SurveyTheme.DefaultLightPanelless);
     console.log("Survey theme applied", SurveyTheme.DefaultLightPanelless);
 
+    survey.showCompleteButton = false;
+
     // Inflate the survey in the page
     $("#surveyContainer").Survey({ model: survey });
 });
-- 
GitLab