The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/components/message/toolbox/MobileToolboxDropdown.tsx

38 lines
847 B

import { Tile } from '@rocket.chat/fuselage';
import type { ReactNode, Ref } from 'react';
import React, { forwardRef } from 'react';
import ScrollableContentWrapper from '../../ScrollableContentWrapper';
type MobileToolboxDropdownProps = {
children: ReactNode;
};
const MobileToolboxDropdown = forwardRef(function MobileToolboxDropdown(
{ children, ...props }: MobileToolboxDropdownProps,
ref: Ref<HTMLElement>,
) {
return (
<Tile
ref={ref}
position='fixed'
is='ul'
padding={0}
paddingBlock={12}
paddingInline={0}
elevation='2'
marginInline={12}
zIndex={9999}
maxHeight='50%'
insetBlockEnd={0}
insetInline={0}
opacity={1}
height='full'
{...props}
>
<ScrollableContentWrapper autoHide={false}>{children}</ScrollableContentWrapper>
</Tile>
);
});
export default MobileToolboxDropdown;