From f09df430b9f1ba2c2be0585589e20df147f4aab4 Mon Sep 17 00:00:00 2001 From: Matthew Birtch Date: Wed, 30 Apr 2025 01:42:40 -0400 Subject: [PATCH] File attachment overflow hiding menu (#30855) Automatic Merge --- .../src/components/file_attachment/file_attachment.tsx | 3 +++ webapp/channels/src/sass/components/_files.scss | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/webapp/channels/src/components/file_attachment/file_attachment.tsx b/webapp/channels/src/components/file_attachment/file_attachment.tsx index fd79d94cf4..21a58fa63e 100644 --- a/webapp/channels/src/components/file_attachment/file_attachment.tsx +++ b/webapp/channels/src/components/file_attachment/file_attachment.tsx @@ -65,6 +65,7 @@ export default function FileAttachment(props: Props) { const [loadFilesCalled, setLoadFilesCalled] = useState(false); const [keepOpen, setKeepOpen] = useState(false); const [openUp, setOpenUp] = useState(false); + const [showTooltip, setShowTooltip] = useState(true); const buttonRef = useRef(null); @@ -139,6 +140,7 @@ export default function FileAttachment(props: Props) { const handleDropdownOpened = (open: boolean) => { props.handleFileDropdownOpened?.(open); setKeepOpen(open); + setShowTooltip(!open); if (open) { setMenuPosition(); @@ -227,6 +229,7 @@ export default function FileAttachment(props: Props) { >