From de7ffde86f1455d17e71f89a1a9aecc3a62f2f09 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Fri, 17 Jan 2025 08:27:09 +0300 Subject: [PATCH] Fixed full-screen pop-up (#7696) Signed-off-by: Alexander Platov --- packages/ui/src/popups.ts | 6 +++--- plugins/love-resources/src/components/Room.svelte | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ui/src/popups.ts b/packages/ui/src/popups.ts index b2e53371fa..512d86aace 100644 --- a/packages/ui/src/popups.ts +++ b/packages/ui/src/popups.ts @@ -375,9 +375,9 @@ export function fitPopupElement ( } else if (element === 'full-centered') { const rect = contentPanel !== undefined ? contentPanel.getBoundingClientRect() : { top: 0 } newProps.top = `${Math.max(20, rect.top + 1)}px` - newProps.bottom = '20px' - newProps.left = '20px' - newProps.right = '20px' + newProps.bottom = '.5rem' + newProps.left = '.5rem' + newProps.right = '.5rem' show = true } else if (element === 'content' && contentPanel !== undefined) { const rect = contentPanel.getBoundingClientRect() diff --git a/plugins/love-resources/src/components/Room.svelte b/plugins/love-resources/src/components/Room.svelte index 867cb4edb2..0cf8e39a78 100644 --- a/plugins/love-resources/src/components/Room.svelte +++ b/plugins/love-resources/src/components/Room.svelte @@ -387,7 +387,7 @@ $: activeParticipants = getActiveParticipants(participants) -
+
{#if $isConnected && !$isCurrentInstanceConnected}