mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 21:03:30 +00:00
Fixed full-screen pop-up (#7696)
Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
parent
4820785009
commit
de7ffde86f
@ -375,9 +375,9 @@ export function fitPopupElement (
|
|||||||
} else if (element === 'full-centered') {
|
} else if (element === 'full-centered') {
|
||||||
const rect = contentPanel !== undefined ? contentPanel.getBoundingClientRect() : { top: 0 }
|
const rect = contentPanel !== undefined ? contentPanel.getBoundingClientRect() : { top: 0 }
|
||||||
newProps.top = `${Math.max(20, rect.top + 1)}px`
|
newProps.top = `${Math.max(20, rect.top + 1)}px`
|
||||||
newProps.bottom = '20px'
|
newProps.bottom = '.5rem'
|
||||||
newProps.left = '20px'
|
newProps.left = '.5rem'
|
||||||
newProps.right = '20px'
|
newProps.right = '.5rem'
|
||||||
show = true
|
show = true
|
||||||
} else if (element === 'content' && contentPanel !== undefined) {
|
} else if (element === 'content' && contentPanel !== undefined) {
|
||||||
const rect = contentPanel.getBoundingClientRect()
|
const rect = contentPanel.getBoundingClientRect()
|
||||||
|
@ -387,7 +387,7 @@
|
|||||||
$: activeParticipants = getActiveParticipants(participants)
|
$: activeParticipants = getActiveParticipants(participants)
|
||||||
</script>
|
</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}
|
{#if $isConnected && !$isCurrentInstanceConnected}
|
||||||
<div class="flex justify-center error h-full w-full clear-mins">
|
<div class="flex justify-center error h-full w-full clear-mins">
|
||||||
<Label label={love.string.AnotherWindowError} />
|
<Label label={love.string.AnotherWindowError} />
|
||||||
|
Loading…
Reference in New Issue
Block a user