From e614905ca1bd5a9466e23e17e13009444d6ee8d4 Mon Sep 17 00:00:00 2001 From: HotelSync Date: Sun, 12 Apr 2026 01:15:36 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20widget=20embed=20=E2=80=94=20full-width?= =?UTF-8?q?=20support=20+=20one-liner=20script=20tags=20via=20hosted=20loa?= =?UTF-8?q?der?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Standalone page: ?width=full removes max-w-lg container constraint - iframeSnippet: passes &width=full to URL when 100% width selected - public/widget-loader.js: hosted script, reads data-* attrs, no inline code needed - data-mode="floating" → styled FAB button bottom-right - data-mode="trigger" → listens for .hotelsync-book class clicks - Proper modal with close button and backdrop click - Code tab snippets for floating/trigger are now single ` - const floatingSnippet = `` - - const triggerSnippet = `` + const triggerSnippet = `` const activeSnippet = codeMode === 'iframe' ? iframeSnippet : codeMode === 'floating' ? floatingSnippet : triggerSnippet diff --git a/src/pages/BookingWidgetStandalonePage.tsx b/src/pages/BookingWidgetStandalonePage.tsx index 9520bdb..ab6d212 100644 --- a/src/pages/BookingWidgetStandalonePage.tsx +++ b/src/pages/BookingWidgetStandalonePage.tsx @@ -74,9 +74,11 @@ export function BookingWidgetStandalonePage() { .catch(() => {}) }, [slug]) + const isFullWidth = searchParams.get('width') === 'full' + return ( -
-
+
+