Skip to content

Commit

Permalink
Fixed full-screen pop-up (hcengineering#7696)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Platov <[email protected]>
  • Loading branch information
SasLord authored Jan 17, 2025
1 parent 4820785 commit de7ffde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/ui/src/popups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion plugins/love-resources/src/components/Room.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
$: activeParticipants = getActiveParticipants(participants)
</script>

<div bind:this={roomEl} class="flex-col-center w-full h-full right-navpanel-border" class:theme-dark={$isFullScreen}>
<div bind:this={roomEl} class="flex-col-center w-full h-full" class:theme-dark={$isFullScreen}>
{#if $isConnected && !$isCurrentInstanceConnected}
<div class="flex justify-center error h-full w-full clear-mins">
<Label label={love.string.AnotherWindowError} />
Expand Down

0 comments on commit de7ffde

Please sign in to comment.