Skip to content
Snippets Groups Projects
Unverified Commit 5af9d44b authored by Martin Schoeler's avatar Martin Schoeler Committed by GitHub
Browse files

regression: EmojiPicker not being displayed correctly (#32720)

parent a2a1cb63
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,6 @@ export type CustomScrollbarsProps = {
const styleDefault: CSSProperties = {
flexGrow: 1,
willChange: 'transform',
overflowY: 'hidden',
};
......
import { css } from '@rocket.chat/css-in-js';
import type { Scrollable } from '@rocket.chat/fuselage';
import { Box } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';
......@@ -24,8 +25,18 @@ const PageScrollableContent = forwardRef<HTMLElement, PageScrollableContentProps
overflow='hidden'
borderBlockEndColor={borderBlockEndColor}
>
<CustomScrollbars onScroll={onScrollContent as CustomScrollbarsProps['onScroll']} ref={ref as any}>
<Box paddingBlock={16} paddingInline={24} display='flex' flexDirection='column' flexGrow={1} {...props} />
<CustomScrollbars onScroll={onScrollContent as CustomScrollbarsProps['onScroll']} ref={ref}>
<Box
className={css`
transform: translateZ(0);
`}
height='100%'
paddingBlock={16}
paddingInline={24}
display='flex'
flexDirection='column'
{...props}
/>
</CustomScrollbars>
</Box>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment