From 70e5172f1b4075f04c0da6f43e013d502d57218c Mon Sep 17 00:00:00 2001 From: nayan9617 Date: Mon, 6 Apr 2026 16:14:08 +0000 Subject: [PATCH] fix/tooltip-clipping (#156) Co-authored-by: nayan9617 Co-committed-by: nayan9617 --- src/app.css | 11 ++++++ src/app/components/RoomDetail.svelte | 51 ++++++++++++++-------------- 2 files changed, 37 insertions(+), 25 deletions(-) diff --git a/src/app.css b/src/app.css index e283ad259..e89e137bb 100644 --- a/src/app.css +++ b/src/app.css @@ -364,6 +364,17 @@ /* tippy popover */ +.tippy-target { + position: fixed; + inset: 0; + z-index: 9999; + pointer-events: none; +} + +.tippy-target > * { + pointer-events: auto; +} + .tippy-box { @apply rounded-box shadow-xl; } diff --git a/src/app/components/RoomDetail.svelte b/src/app/components/RoomDetail.svelte index 69746d907..80688c7c2 100644 --- a/src/app/components/RoomDetail.svelte +++ b/src/app/components/RoomDetail.svelte @@ -22,6 +22,7 @@ import Button from "@lib/components/Button.svelte" import Popover from "@lib/components/Popover.svelte" import Confirm from "@lib/components/Confirm.svelte" + import Tooltip from "@lib/components/Tooltip.svelte" import Modal from "@lib/components/Modal.svelte" import ModalBody from "@lib/components/ModalBody.svelte" import ModalFooter from "@lib/components/ModalFooter.svelte" @@ -206,39 +207,39 @@ Room Permissions
{#if $room?.isRestricted} - + + + {/if} {#if $room?.isPrivate} - + + + {/if} {#if $room?.isHidden} - + + + {/if} {#if $room?.isClosed} - + + + {/if} {#if !$room?.isRestricted && !$room?.isPrivate && !$room?.isHidden && !$room?.isClosed} - + + + {/if}