Skip to content

Commit

Permalink
[FIX] Message menu dropdown not working on Mobile Web (#25616)
Browse files Browse the repository at this point in the history
* Fix dropdown mobile

* use box props
  • Loading branch information
gabriellsh committed May 23, 2022
1 parent fcb2c9f commit c53b3a5
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
import { css } from '@rocket.chat/css-in-js';
import { Tile } from '@rocket.chat/fuselage';
import React, { forwardRef, ReactNode } from 'react';

import ScrollableContentWrapper from '../../../../../components/ScrollableContentWrapper';

const dropdownStyle = css`
z-index: 9999;
opacity: 1;
bottom: 0;
left: 0;
right: 0;
`;

export const ToolboxDropdownMobile = forwardRef<
HTMLElement,
{
Expand All @@ -26,9 +17,13 @@ export const ToolboxDropdownMobile = forwardRef<
paddingBlock='x12'
paddingInline={0}
elevation='2'
mi='x12'
zIndex={9999}
ref={ref}
className={dropdownStyle}
maxHeight='50%'
insetBlockEnd={0}
insetInline={0}
opacity={1}
h='full'
{...rest}
>
Expand Down

0 comments on commit c53b3a5

Please sign in to comment.