From 3a5c40a8864151043c36099a9b4b6b49b1acbf7b Mon Sep 17 00:00:00 2001 From: Yvv Date: Tue, 3 Mar 2026 06:48:52 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9cision=20:=20picto=20gavel=20titre=20+?= =?UTF-8?q?=20parchemin=20docs,=20GrateWizard=20embed=20sans=20double=20sc?= =?UTF-8?q?roll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Page décision : icône gavel pour le titre, scroll-text pour Documents de référence - GrateWizard : ouverture en mode embed (?embed=true&hideTabBar=true) avec scrollbars=no pour supprimer le double scroll Co-Authored-By: Claude Opus 4.6 --- app/composables/useGrateWizard.ts | 11 +++++++---- app/pages/decision.vue | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/composables/useGrateWizard.ts b/app/composables/useGrateWizard.ts index 8f7c8f3..f2a6cf6 100644 --- a/app/composables/useGrateWizard.ts +++ b/app/composables/useGrateWizard.ts @@ -3,12 +3,15 @@ export function useGrateWizard() { const { url, popup } = appConfig.gratewizard as { url: string; popup: { width: number; height: number } } function launch(e?: Event) { - const left = Math.round((window.screen.width - popup.width) / 2) - const top = Math.round((window.screen.height - popup.height) / 2) + const w = popup.width + const h = popup.height + const left = Math.round((window.screen.width - w) / 2) + const top = Math.round((window.screen.height - h) / 2) + const embedUrl = `${url}?embed=true&hideTabBar=true&tab=mn` const win = window.open( - url, + embedUrl, 'grateWizard', - `width=${popup.width},height=${popup.height},left=${left},top=${top},menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes`, + `width=${w},height=${h},left=${left},top=${top},menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=yes`, ) if (win) e?.preventDefault() } diff --git a/app/pages/decision.vue b/app/pages/decision.vue index 3a96de3..5ec312d 100644 --- a/app/pages/decision.vue +++ b/app/pages/decision.vue @@ -5,7 +5,7 @@
-
+

Plateforme Décision

@@ -58,7 +58,7 @@ const features = [ text: 'Formaliser et suivre les mandats confiés aux personnes désignées.', }, { - icon: 'file-text', + icon: 'scroll-text', title: 'Documents de référence', text: 'Les textes fondateurs et documents qui encadrent la prise de décision.', },