Sort styles

This commit is contained in:
Nicola Benaglia 2025-05-26 21:37:49 +02:00
parent 131579b3ca
commit 342d68b248
2 changed files with 174 additions and 175 deletions

View File

@ -4,64 +4,60 @@ import { styled } from '@mui/system';
export const MailContainer = styled(Box)(({ theme }) => ({ export const MailContainer = styled(Box)(({ theme }) => ({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
width: '100%',
height: 'calc(100vh - 78px)', height: 'calc(100vh - 78px)',
overflow: 'hidden', overflow: 'hidden',
width: '100%',
})); }));
export const MailBody = styled(Box)(({ theme }) => ({ export const MailBody = styled(Box)(({ theme }) => ({
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
width: '100%',
height: 'calc(100% - 59px)', height: 'calc(100% - 59px)',
width: '100%',
})); }));
export const MailBodyInner = styled(Box)(({ theme }) => ({ export const MailBodyInner = styled(Box)(({ theme }) => ({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
width: '50%',
height: '100%', height: '100%',
width: '50%',
})); }));
export const MailBodyInnerHeader = styled(Box)(({ theme }) => ({ export const MailBodyInnerHeader = styled(Box)(({ theme }) => ({
display: 'flex',
width: '100%',
height: '25px',
marginTop: '50px',
marginBottom: '35px',
justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
display: 'flex',
gap: '11px', gap: '11px',
height: '25px',
justifyContent: 'center',
marginBottom: '35px',
marginTop: '50px',
width: '100%',
})); }));
export const MailBodyInnerScroll = styled(Box)` export const MailBodyInnerScroll = styled(Box)`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: calc(100% - 110px);
overflow: auto !important; overflow: auto !important;
transition: background-color 0.3s; transition: background-color 0.3s;
height: calc(100% - 110px);
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 8px; width: 8px;
height: 8px; height: 8px;
background-color: transparent; /* Initially transparent */ background-color: transparent; /* Initially transparent */
transition: background-color 0.3s; /* Transition for background color */ transition: background-color 0.3s; /* Transition for background color */
} }
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background-color: transparent; /* Initially transparent */ background-color: transparent; /* Initially transparent */
border-radius: 3px; /* Scrollbar thumb radius */ border-radius: 3px; /* Scrollbar thumb radius */
transition: background-color 0.3s; /* Transition for thumb color */ transition: background-color 0.3s; /* Transition for thumb color */
} }
&:hover { &:hover {
&::-webkit-scrollbar { &::-webkit-scrollbar {
background-color: #494747; /* Scrollbar background color on hover */ background-color: #494747; /* Scrollbar background color on hover */
} }
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background-color: #ffffff3d; /* Scrollbar thumb color on hover */ background-color: #ffffff3d; /* Scrollbar thumb color on hover */
} }
&::-webkit-scrollbar-thumb:hover { &::-webkit-scrollbar-thumb:hover {
background-color: #ffffff3d; /* Color when hovering over the thumb */ background-color: #ffffff3d; /* Color when hovering over the thumb */
} }
@ -69,25 +65,25 @@ export const MailBodyInnerScroll = styled(Box)`
`; `;
export const ComposeContainer = styled(Box)(({ theme }) => ({ export const ComposeContainer = styled(Box)(({ theme }) => ({
display: 'flex',
width: '150px',
alignItems: 'center', alignItems: 'center',
cursor: 'pointer',
display: 'flex',
gap: '7px', gap: '7px',
height: '100%', height: '100%',
cursor: 'pointer',
transition: '0.2s background-color',
justifyContent: 'center', justifyContent: 'center',
transition: '0.2s background-color',
width: '150px',
'&:hover': { '&:hover': {
backgroundColor: theme.palette.action.hover, backgroundColor: theme.palette.action.hover,
}, },
})); }));
export const ComposeContainerBlank = styled(Box)(({ theme }) => ({ export const ComposeContainerBlank = styled(Box)(({ theme }) => ({
display: 'flex',
width: '150px',
alignItems: 'center', alignItems: 'center',
display: 'flex',
gap: '7px', gap: '7px',
height: '100%', height: '100%',
width: '150px',
})); }));
export const ComposeP = styled(Typography)(({ theme }) => ({ export const ComposeP = styled(Typography)(({ theme }) => ({
@ -96,54 +92,54 @@ export const ComposeP = styled(Typography)(({ theme }) => ({
})); }));
export const ComposeIcon = styled('img')({ export const ComposeIcon = styled('img')({
width: 'auto',
height: 'auto',
userSelect: 'none',
objectFit: 'contain',
cursor: 'pointer', cursor: 'pointer',
height: 'auto',
objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const ArrowDownIcon = styled('img')({ export const ArrowDownIcon = styled('img')({
width: 'auto',
height: 'auto',
userSelect: 'none',
objectFit: 'contain',
cursor: 'pointer', cursor: 'pointer',
height: 'auto',
objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const MailIconImg = styled('img')({ export const MailIconImg = styled('img')({
width: 'auto',
height: 'auto', height: 'auto',
userSelect: 'none',
objectFit: 'contain', objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const MailMessageRowInfoImg = styled('img')({ export const MailMessageRowInfoImg = styled('img')({
width: 'auto',
height: 'auto', height: 'auto',
userSelect: 'none',
objectFit: 'contain', objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const SelectInstanceContainer = styled(Box)(({ theme }) => ({ export const SelectInstanceContainer = styled(Box)(({ theme }) => ({
display: 'flex',
alignItems: 'center', alignItems: 'center',
display: 'flex',
gap: '17px', gap: '17px',
})); }));
export const SelectInstanceContainerFilterInner = styled(Box)(({ theme }) => ({ export const SelectInstanceContainerFilterInner = styled(Box)(({ theme }) => ({
display: 'flex',
alignItems: 'center', alignItems: 'center',
gap: '3px',
cursor: 'pointer', cursor: 'pointer',
display: 'flex',
gap: '3px',
padding: '8px', padding: '8px',
transition: 'all 0.2s', transition: 'all 0.2s',
})); }));
export const InstanceLabel = styled(Typography)(({ theme }) => ({ export const InstanceLabel = styled(Typography)(({ theme }) => ({
color: '#FFFFFF33',
fontSize: '16px', fontSize: '16px',
fontWeight: 500, fontWeight: 500,
color: '#FFFFFF33',
})); }));
export const InstanceP = styled(Typography)(({ theme }) => ({ export const InstanceP = styled(Typography)(({ theme }) => ({
@ -152,14 +148,15 @@ export const InstanceP = styled(Typography)(({ theme }) => ({
})); }));
export const InstanceListParent = styled(Typography)(({ theme }) => ({ export const InstanceListParent = styled(Typography)(({ theme }) => ({
border: '1px solid rgba(0, 0, 0, 0.1)',
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
width: '425px', // only one width now
minHeight: '246px',
maxHeight: '325px', maxHeight: '325px',
minHeight: '246px',
padding: '10px 0px 7px 0px', padding: '10px 0px 7px 0px',
border: '1px solid rgba(0, 0, 0, 0.1)', width: '425px', // only one width now
})); }));
export const InstanceListHeader = styled(Typography)(({ theme }) => ({ export const InstanceListHeader = styled(Typography)(({ theme }) => ({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
@ -169,40 +166,35 @@ export const InstanceListHeader = styled(Typography)(({ theme }) => ({
export const InstanceFooter = styled(Box)` export const InstanceFooter = styled(Box)`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%;
flex-shrink: 0; flex-shrink: 0;
width: 100%;
`; `;
export const InstanceListContainer = styled(Box)` export const InstanceListContainer = styled(Box)`
width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
overflow: auto !important; overflow: auto !important;
transition: background-color 0.3s; transition: background-color 0.3s;
width: 100%;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 8px; width: 8px;
height: 8px; height: 8px;
background-color: transparent; /* Initially transparent */ background-color: transparent; /* Initially transparent */
transition: background-color 0.3s; /* Transition for background color */ transition: background-color 0.3s; /* Transition for background color */
} }
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background-color: transparent; /* Initially transparent */ background-color: transparent; /* Initially transparent */
border-radius: 3px; /* Scrollbar thumb radius */ border-radius: 3px; /* Scrollbar thumb radius */
transition: background-color 0.3s; /* Transition for thumb color */ transition: background-color 0.3s; /* Transition for thumb color */
} }
&:hover { &:hover {
&::-webkit-scrollbar { &::-webkit-scrollbar {
background-color: #494747; /* Scrollbar background color on hover */ background-color: #494747; /* Scrollbar background color on hover */
} }
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background-color: #ffffff3d; /* Scrollbar thumb color on hover */ background-color: #ffffff3d; /* Scrollbar thumb color on hover */
} }
&::-webkit-scrollbar-thumb:hover { &::-webkit-scrollbar-thumb:hover {
background-color: #ffffff3d; /* Color when hovering over the thumb */ background-color: #ffffff3d; /* Color when hovering over the thumb */
} }
@ -211,150 +203,156 @@ export const InstanceListContainer = styled(Box)`
export const InstanceListContainerRowLabelContainer = styled(Box)( export const InstanceListContainerRowLabelContainer = styled(Box)(
({ theme }) => ({ ({ theme }) => ({
width: '100%',
display: 'flex',
alignItems: 'center', alignItems: 'center',
display: 'flex',
gap: '10px', gap: '10px',
height: '50px', height: '50px',
width: '100%',
}) })
); );
export const InstanceListContainerRow = styled(Box)(({ theme }) => ({ export const InstanceListContainerRow = styled(Box)(({ theme }) => ({
width: '100%',
display: 'flex',
alignItems: 'center', alignItems: 'center',
cursor: 'pointer',
display: 'flex',
flexShrink: 0,
gap: '10px', gap: '10px',
height: '50px', height: '50px',
cursor: 'pointer',
transition: '0.2s background', transition: '0.2s background',
width: '100%',
'&:hover': { '&:hover': {
background: theme.palette.action.hover, background: theme.palette.action.hover,
}, },
flexShrink: 0,
})); }));
export const InstanceListContainerRowCheck = styled(Box)(({ theme }) => ({ export const InstanceListContainerRowCheck = styled(Box)(({ theme }) => ({
width: '47px',
display: 'flex',
alignItems: 'center', alignItems: 'center',
display: 'flex',
justifyContent: 'center', justifyContent: 'center',
width: '47px',
})); }));
export const InstanceListContainerRowMain = styled(Box)(({ theme }) => ({ export const InstanceListContainerRowMain = styled(Box)(({ theme }) => ({
alignItems: 'center',
display: 'flex', display: 'flex',
justifyContent: 'space-between', justifyContent: 'space-between',
width: '100%',
alignItems: 'center',
paddingRight: '30px',
overflow: 'hidden', overflow: 'hidden',
paddingRight: '30px',
width: '100%',
})); }));
export const CloseParent = styled(Box)(({ theme }) => ({ export const CloseParent = styled(Box)(({ theme }) => ({
display: 'flex',
alignItems: 'center', alignItems: 'center',
display: 'flex',
gap: '20px', gap: '20px',
})); }));
export const InstanceListContainerRowMainP = styled(Typography)( export const InstanceListContainerRowMainP = styled(Typography)(
({ theme }) => ({ ({ theme }) => ({
fontWeight: 500,
fontSize: '16px', fontSize: '16px',
textOverflow: 'ellipsis', fontWeight: 500,
overflow: 'hidden', overflow: 'hidden',
textOverflow: 'ellipsis',
}) })
); );
export const InstanceListContainerRowCheckIcon = styled('img')({ export const InstanceListContainerRowCheckIcon = styled('img')({
width: 'auto',
height: 'auto', height: 'auto',
userSelect: 'none',
objectFit: 'contain', objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const InstanceListContainerRowGroupIcon = styled('img')({ export const InstanceListContainerRowGroupIcon = styled('img')({
width: 'auto',
height: 'auto', height: 'auto',
userSelect: 'none',
objectFit: 'contain', objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const NewMessageCloseImg = styled('img')({ export const NewMessageCloseImg = styled('img')({
width: 'auto',
height: 'auto',
userSelect: 'none',
objectFit: 'contain',
cursor: 'pointer', cursor: 'pointer',
height: 'auto',
objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const NewMessageHeaderP = styled(Typography)(({ theme }) => ({ export const NewMessageHeaderP = styled(Typography)(({ theme }) => ({
color: theme.palette.text.primary,
fontSize: '18px', fontSize: '18px',
fontWeight: 600, fontWeight: 600,
color: theme.palette.text.primary,
})); }));
export const NewMessageInputRow = styled(Box)(({ theme }) => ({ export const NewMessageInputRow = styled(Box)(({ theme }) => ({
display: 'flex',
alignItems: 'center', alignItems: 'center',
justifyContent: 'space-between',
borderBottom: '3px solid rgba(237, 239, 241, 1)', borderBottom: '3px solid rgba(237, 239, 241, 1)',
width: '100%', display: 'flex',
justifyContent: 'space-between',
paddingBottom: '6px', paddingBottom: '6px',
width: '100%',
})); }));
export const NewMessageInputLabelP = styled(Typography)` export const NewMessageInputLabelP = styled(Typography)`
color: rgba(84, 84, 84, 0.7); color: rgba(84, 84, 84, 0.7);
font-size: 20px; font-size: 20px;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 120%; /* 24px */
letter-spacing: 0.15px; letter-spacing: 0.15px;
line-height: 120%; /* 24px */
`; `;
export const AliasLabelP = styled(Typography)` export const AliasLabelP = styled(Typography)`
color: rgba(84, 84, 84, 0.7); color: rgba(84, 84, 84, 0.7);
cursor: pointer;
font-size: 16px; font-size: 16px;
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
line-height: 120%; /* 24px */
letter-spacing: 0.15px; letter-spacing: 0.15px;
line-height: 120%; /* 24px */
transition: color 0.2s; transition: color 0.2s;
cursor: pointer;
&:hover { &:hover {
color: rgba(43, 43, 43, 1); color: rgba(43, 43, 43, 1);
} }
`; `;
export const NewMessageAliasContainer = styled(Box)(({ theme }) => ({ export const NewMessageAliasContainer = styled(Box)(({ theme }) => ({
display: 'flex',
alignItems: 'center', alignItems: 'center',
display: 'flex',
gap: '12px', gap: '12px',
})); }));
export const AttachmentContainer = styled(Box)(({ theme }) => ({ export const AttachmentContainer = styled(Box)(({ theme }) => ({
alignItems: 'center',
display: 'flex',
height: '36px', height: '36px',
width: '100%', width: '100%',
display: 'flex',
alignItems: 'center',
})); }));
export const NewMessageAttachmentImg = styled('img')({ export const NewMessageAttachmentImg = styled('img')({
width: 'auto',
height: 'auto',
userSelect: 'none',
objectFit: 'contain',
cursor: 'pointer',
padding: '10px',
border: '1px dashed #646464', border: '1px dashed #646464',
cursor: 'pointer',
height: 'auto',
objectFit: 'contain',
padding: '10px',
userSelect: 'none',
width: 'auto',
}); });
export const NewMessageSendButton = styled(Box)(({ theme }) => ({ export const NewMessageSendButton = styled(Box)(({ theme }) => ({
borderRadius: '4px',
border: `1px solid ${theme.palette.border.main}`, // you can replace with theme.palette.divider or whatever you want later
display: 'inline-flex',
padding: '8px 16px 8px 12px',
justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
width: 'fit-content', border: `1px solid ${theme.palette.border.main}`, // you can replace with theme.palette.divider or whatever you want later
transition: 'all 0.2s', borderRadius: '4px',
color: theme.palette.text.primary, // replace later with theme.palette.text.primary if needed color: theme.palette.text.primary, // replace later with theme.palette.text.primary if needed
minWidth: '120px',
position: 'relative',
gap: '8px',
cursor: 'pointer', cursor: 'pointer',
display: 'inline-flex',
gap: '8px',
justifyContent: 'center',
minWidth: '120px',
padding: '8px 16px 8px 12px',
position: 'relative',
transition: 'all 0.2s',
width: 'fit-content',
'&:hover': { '&:hover': {
backgroundColor: theme.palette.action.hover, // replace with theme value if needed backgroundColor: theme.palette.action.hover, // replace with theme value if needed
}, },
@ -365,45 +363,45 @@ export const NewMessageSendP = styled(Typography)`
font-size: 16px; font-size: 16px;
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
line-height: 120%; /* 19.2px */
letter-spacing: -0.16px; letter-spacing: -0.16px;
line-height: 120%; /* 19.2px */
`; `;
export const ShowMessageNameP = styled(Typography)` export const ShowMessageNameP = styled(Typography)`
font-family: Roboto; font-family: Roboto;
font-size: 16px; font-size: 16px;
font-weight: 900; font-weight: 900;
line-height: 19px;
letter-spacing: 0em; letter-spacing: 0em;
text-align: left; line-height: 19px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
`; `;
export const ShowMessageSubjectP = styled(Typography)` export const ShowMessageSubjectP = styled(Typography)`
font-family: Roboto; font-family: Roboto;
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
line-height: 19px;
letter-spacing: 0.0075em; letter-spacing: 0.0075em;
line-height: 19px;
text-align: left; text-align: left;
`; `;
export const ShowMessageButton = styled(Box)(({ theme }) => ({ export const ShowMessageButton = styled(Box)(({ theme }) => ({
display: 'inline-flex',
padding: '8px 16px',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center',
width: 'fit-content',
transition: 'all 0.2s',
color: theme.palette.text.primary, // you'll replace with theme value
minWidth: '120px',
gap: '8px',
borderRadius: '4px',
border: theme.palette.border.main, // you'll replace border: theme.palette.border.main, // you'll replace
fontFamily: 'Roboto', borderRadius: '4px',
color: theme.palette.text.primary, // you'll replace with theme value
cursor: 'pointer', cursor: 'pointer',
display: 'inline-flex',
fontFamily: 'Roboto',
gap: '8px',
justifyContent: 'center',
minWidth: '120px',
padding: '8px 16px',
transition: 'all 0.2s',
width: 'fit-content',
'&:hover': { '&:hover': {
background: theme.palette.action.hover, // you'll replace background: theme.palette.action.hover, // you'll replace
borderRadius: '4px', borderRadius: '4px',
@ -411,18 +409,18 @@ export const ShowMessageButton = styled(Box)(({ theme }) => ({
})); }));
export const ShowMessageReturnButton = styled(Box)(({ theme }) => ({ export const ShowMessageReturnButton = styled(Box)(({ theme }) => ({
display: 'inline-flex',
padding: '8px 16px',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center',
width: 'fit-content',
transition: 'all 0.2s',
color: theme.palette.text.primary, // you'll replace with theme value
minWidth: '120px',
gap: '8px',
borderRadius: '4px', borderRadius: '4px',
fontFamily: 'Roboto', color: theme.palette.text.primary, // you'll replace with theme value
cursor: 'pointer', cursor: 'pointer',
display: 'inline-flex',
fontFamily: 'Roboto',
gap: '8px',
justifyContent: 'center',
minWidth: '120px',
padding: '8px 16px',
transition: 'all 0.2s',
width: 'fit-content',
'&:hover': { '&:hover': {
background: theme.palette.action.hover, // you'll replace background: theme.palette.action.hover, // you'll replace
borderRadius: '4px', borderRadius: '4px',
@ -430,33 +428,33 @@ export const ShowMessageReturnButton = styled(Box)(({ theme }) => ({
})); }));
export const ShowMessageButtonImg = styled('img')({ export const ShowMessageButtonImg = styled('img')({
width: 'auto',
height: 'auto',
userSelect: 'none',
objectFit: 'contain',
cursor: 'pointer', cursor: 'pointer',
height: 'auto',
objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const MailAttachmentImg = styled('img')({ export const MailAttachmentImg = styled('img')({
width: 'auto',
height: 'auto', height: 'auto',
userSelect: 'none',
objectFit: 'contain', objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const AliasAvatarImg = styled('img')({ export const AliasAvatarImg = styled('img')({
width: 'auto',
height: 'auto', height: 'auto',
userSelect: 'none',
objectFit: 'contain', objectFit: 'contain',
userSelect: 'none',
width: 'auto',
}); });
export const MoreImg = styled('img')({ export const MoreImg = styled('img')({
width: 'auto',
height: 'auto', height: 'auto',
userSelect: 'none',
objectFit: 'contain', objectFit: 'contain',
transition: '0.2s all', transition: '0.2s all',
userSelect: 'none',
width: 'auto',
'&:hover': { '&:hover': {
transform: 'scale(1.3)', transform: 'scale(1.3)',
}, },
@ -468,76 +466,76 @@ export const MoreP = styled(Typography)(({ theme }) => ({
fontSize: '16px', fontSize: '16px',
fontStyle: 'normal', fontStyle: 'normal',
fontWeight: 400, fontWeight: 400,
lineHeight: '120%', // 19.2px
letterSpacing: '-0.16px', letterSpacing: '-0.16px',
lineHeight: '120%', // 19.2px
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
})); }));
export const ThreadContainerFullWidth = styled(Box)(({ theme }) => ({ export const ThreadContainerFullWidth = styled(Box)(({ theme }) => ({
alignItems: 'center',
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
width: '100%', width: '100%',
alignItems: 'center',
})); }));
export const ThreadContainer = styled(Box)(({ theme }) => ({ export const ThreadContainer = styled(Box)(({ theme }) => ({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
width: '100%',
maxWidth: '95%', maxWidth: '95%',
width: '100%',
})); }));
export const GroupNameP = styled(Typography)` export const GroupNameP = styled(Typography)`
font-size: 25px; font-size: 25px;
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
line-height: 120%; /* 30px */
letter-spacing: 0.188px; letter-spacing: 0.188px;
line-height: 120%; /* 30px */
`; `;
export const AllThreadP = styled(Typography)` export const AllThreadP = styled(Typography)`
font-size: 20px; font-size: 20px;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 120%; /* 24px */
letter-spacing: 0.15px; letter-spacing: 0.15px;
line-height: 120%; /* 24px */
`; `;
export const SingleThreadParent = styled(Box)(({ theme }) => ({ export const SingleThreadParent = styled(Box)(({ theme }) => ({
borderRadius: '35px 4px 4px 35px',
position: 'relative',
display: 'flex',
padding: '13px',
cursor: 'pointer',
marginBottom: '5px',
height: '76px',
alignItems: 'center', alignItems: 'center',
transition: '0.2s all',
backgroundColor: theme.palette.background.paper, // or remove if you want no background by default backgroundColor: theme.palette.background.paper, // or remove if you want no background by default
borderRadius: '35px 4px 4px 35px',
cursor: 'pointer',
display: 'flex',
height: '76px',
marginBottom: '5px',
padding: '13px',
position: 'relative',
transition: '0.2s all',
'&:hover': { '&:hover': {
backgroundColor: theme.palette.action.hover, backgroundColor: theme.palette.action.hover,
}, },
})); }));
export const SingleTheadMessageParent = styled(Box)(({ theme }) => ({ export const SingleTheadMessageParent = styled(Box)(({ theme }) => ({
borderRadius: '35px 4px 4px 35px',
background: theme.palette.background.paper,
display: 'flex',
padding: '13px',
cursor: 'pointer',
marginBottom: '5px',
height: '76px',
alignItems: 'center', alignItems: 'center',
background: theme.palette.background.paper,
borderRadius: '35px 4px 4px 35px',
cursor: 'pointer',
display: 'flex',
height: '76px',
marginBottom: '5px',
padding: '13px',
})); }));
export const ThreadInfoColumn = styled(Box)(({ theme }) => ({ export const ThreadInfoColumn = styled(Box)(({ theme }) => ({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
width: '170px',
gap: '2px', gap: '2px',
marginLeft: '10px',
height: '100%', height: '100%',
justifyContent: 'center', justifyContent: 'center',
marginLeft: '10px',
width: '170px',
})); }));
export const ThreadInfoColumnNameP = styled(Typography)` export const ThreadInfoColumnNameP = styled(Typography)`
@ -546,9 +544,9 @@ export const ThreadInfoColumnNameP = styled(Typography)`
font-style: normal; font-style: normal;
font-weight: 900; font-weight: 900;
line-height: normal; line-height: normal;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`; `;
export const ThreadInfoColumnbyP = styled('span')(({ theme }) => ({ export const ThreadInfoColumnbyP = styled('span')(({ theme }) => ({
@ -575,9 +573,9 @@ export const ThreadSingleTitle = styled(Typography)`
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
line-height: normal; line-height: normal;
white-space: wrap;
text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis;
white-space: wrap;
`; `;
export const ThreadSingleLastMessageP = styled(Typography)` export const ThreadSingleLastMessageP = styled(Typography)`
@ -597,24 +595,24 @@ export const ThreadSingleLastMessageSpanP = styled('span')`
`; `;
export const GroupContainer = styled(Box)` export const GroupContainer = styled(Box)`
position: relative;
overflow: auto; overflow: auto;
position: relative;
width: 100%; width: 100%;
`; `;
export const CloseContainer = styled(Box)(({ theme }) => ({ export const CloseContainer = styled(Box)(({ theme }) => ({
display: 'flex',
width: '50px',
overflow: 'hidden',
alignItems: 'center', alignItems: 'center',
cursor: 'pointer',
transition: '0.2s background-color',
justifyContent: 'center',
position: 'absolute',
top: '0px',
right: '0px',
height: '50px',
borderRadius: '0px 12px 0px 0px', borderRadius: '0px 12px 0px 0px',
cursor: 'pointer',
display: 'flex',
height: '50px',
justifyContent: 'center',
overflow: 'hidden',
position: 'absolute',
right: '0px',
top: '0px',
transition: '0.2s background-color',
width: '50px',
'&:hover': { '&:hover': {
backgroundColor: theme.palette.action.hover, backgroundColor: theme.palette.action.hover,
}, },

View File

@ -100,30 +100,30 @@ export const ShowMessage = ({ message, openNewPostWithQuote, myName }: any) => {
return ( return (
<Box <Box
sx={{ sx={{
alignItems: 'center',
display: expandAttachments display: expandAttachments
? 'flex' ? 'flex'
: !expandAttachments && isFirst : !expandAttachments && isFirst
? 'flex' ? 'flex'
: 'none', : 'none',
alignItems: 'center',
justifyContent: 'flex-start', justifyContent: 'flex-start',
width: '100%', width: '100%',
}} }}
> >
<Box <Box
sx={{ sx={{
display: 'flex',
alignItems: 'center', alignItems: 'center',
gap: '5px',
cursor: 'pointer', cursor: 'pointer',
display: 'flex',
gap: '5px',
width: 'auto', width: 'auto',
}} }}
> >
{message?.attachments?.length > 1 && isFirst && ( {message?.attachments?.length > 1 && isFirst && (
<Box <Box
sx={{ sx={{
display: 'flex',
alignItems: 'center', alignItems: 'center',
display: 'flex',
gap: '5px', gap: '5px',
}} }}
onClick={() => { onClick={() => {
@ -161,18 +161,18 @@ export const ShowMessage = ({ message, openNewPostWithQuote, myName }: any) => {
<> <>
<Box <Box
sx={{ sx={{
width: '100%',
opacity: 0.7,
borderRadius: '8px',
border: '1px solid gray', border: '1px solid gray',
borderRadius: '8px',
boxSizing: 'border-box', boxSizing: 'border-box',
opacity: 0.7,
padding: '5px', padding: '5px',
width: '100%',
}} }}
> >
<Box <Box
sx={{ sx={{
display: 'flex',
alignItems: 'flex-start', alignItems: 'flex-start',
display: 'flex',
gap: '10px', gap: '10px',
}} }}
> >
@ -200,6 +200,7 @@ export const ShowMessage = ({ message, openNewPostWithQuote, myName }: any) => {
<MessageDisplay htmlContent={message?.reply?.textContentV2} /> <MessageDisplay htmlContent={message?.reply?.textContentV2} />
</Box> </Box>
<Spacer height="20px" /> <Spacer height="20px" />
</> </>
)} )}
@ -215,9 +216,9 @@ export const ShowMessage = ({ message, openNewPostWithQuote, myName }: any) => {
)} )}
<Box <Box
sx={{ sx={{
width: '100%',
display: 'flex', display: 'flex',
justifyContent: 'flex-end', justifyContent: 'flex-end',
width: '100%',
}} }}
> >
<IconButton onClick={() => openNewPostWithQuote(message)}> <IconButton onClick={() => openNewPostWithQuote(message)}>