adjust styles

This commit is contained in:
Ramón Souza 2023-08-04 16:14:57 -03:00
parent 95e3bba2f1
commit 56c4657c46
3 changed files with 14 additions and 2 deletions

View File

@ -150,6 +150,8 @@ const ReactionsButton = (props) => {
overrideMobileStyles
isHorizontal={!isMobile}
isMobile={isMobile}
roundButtons={true}
keepOpen={true}
opts={{
id: 'reactions-dropdown-menu',
keepMounted: true,

View File

@ -98,7 +98,7 @@ class BBBMenu extends React.Component {
};
makeMenuItems() {
const { actions, selectedEmoji, intl, isHorizontal, isMobile } = this.props;
const { actions, selectedEmoji, intl, isHorizontal, isMobile, roundButtons, keepOpen } = this.props;
return actions?.map(a => {
const { dataTest, label, onClick, key, disabled, description, selected } = a;
@ -128,9 +128,10 @@ class BBBMenu extends React.Component {
disableGutters={true}
disabled={disabled}
style={customStyles}
roundButtons={roundButtons}
onClick={(event) => {
onClick();
const close = !key?.includes('setstatus') && !key?.includes('back');
const close = !keepOpen && !key?.includes('setstatus') && !key?.includes('back');
// prevent menu close for sub menu actions
if (close) this.handleClose(event);
event.stopPropagation();

View File

@ -107,6 +107,15 @@ const BBBMenuItem = styled(MenuItem)`
}
}
`}
${({ roundButtons }) => roundButtons && `
&:focus,
&:hover {
background-color: ${colorWhite} !important;
div div div {
background-color: ${colorPrimary} !important;
}
}
`}
`;
export default {