Skip to content

Commit

Permalink
added msgstyles in toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiral-Memory committed May 10, 2024
1 parent 947b971 commit 8b7436d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
1 change: 0 additions & 1 deletion packages/react/src/components/Message/Message.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ export const MessageToolboxStyles = {
padding: 0.25rem;
border: 1px solid #dfdfdf;
border-radius: 0.25rem;
background: #fff;
`,
};
31 changes: 3 additions & 28 deletions packages/react/src/components/Message/MessageToolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,7 @@ import { Icon } from '../Icon';
import { Button } from '../Button';
import { parseEmoji } from '../../lib/emoji';
import { Tooltip } from '../Tooltip';

const MessageToolboxWrapperCss = css`
display: none;
.ec-message:hover & {
display: flex;
position: absolute;
bottom: 100%;
z-index: 90;
right: 2rem;
}
`;

const MessageToolboxCss = css`
display: flex;
margin-left: -0.25rem;
margin-right: -0.25rem;
margin-inline: -0.25rem;
margin-top: 0.125rem;
font-size: 1.25rem !important;
gap: 0.25rem;
padding: 0.25rem;
border: 1px solid #dfdfdf;
border-radius: 0.25rem;
background: #fff;
`;
import { MessageToolboxStyles as styles } from './Message.styles';

const popupStyle = {
margin: '0',
Expand Down Expand Up @@ -82,9 +57,9 @@ export const MessageToolbox = ({

return (
<>
<Box css={MessageToolboxWrapperCss}>
<Box css={styles.container}>
<Box
css={MessageToolboxCss}
css={styles.toolbox}
className={appendClassNames('ec-message-toolbox', classNames)}
style={styleOverrides}
{...props}
Expand Down

0 comments on commit 8b7436d

Please sign in to comment.