Skip to content

Commit

Permalink
fix(contextualbar thread): Remove resizable handler when thread is ex…
Browse files Browse the repository at this point in the history
…panded (RocketChat#33958)
  • Loading branch information
dougfabris authored Nov 19, 2024
1 parent c49808b commit a72c315
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/unlucky-wasps-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fixes an issue where resizable handler renders over the expanded thread view while using contextualbarResizable feature preview
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ type ContextualbarResizableProps = { defaultWidth: string } & ComponentProps<typ

const ContextualbarResizable = ({ defaultWidth, children, ...props }: ContextualbarResizableProps) => {
const [contextualbarWidth, setContextualbarWidth] = useLocalStorage('contextualbarWidth', defaultWidth);
const [expanded] = useLocalStorage('expand-threads', false);

const handleStyle = css`
height: 100%;
&:hover {
Expand All @@ -29,7 +31,7 @@ const ContextualbarResizable = ({ defaultWidth, children, ...props }: Contextual
minWidth={defaultWidth}
maxWidth='50%'
minHeight='100%'
handleStyles={{ left: { width: '3px', zIndex: 99, left: 0 } }}
handleStyles={{ left: { width: '3px', zIndex: expanded ? 5 : 99, left: 0 } }}
handleComponent={{ left: <Box className={handleStyle} /> }}
>
{children}
Expand Down

0 comments on commit a72c315

Please sign in to comment.