updated styling to better fit with the message aspect
This commit is contained in:
1 parent
b09709deb6
commit
f79d124fd2
2 files changed
+24
-20
No files matched your search
@@ -24,10 +24,10 @@ export const EventItem = style({
|
||||
height: 'unset',
|
||||
borderRadius: '5px',
|
||||
border: '2px hidden',
|
||||
borderColor: color.Secondary.Main,
|
||||
backgroundColor: 'inherit',
|
||||
selectors: {
|
||||
'&:hover': {
|
||||
border: '2px solid',
|
||||
backgroundColor: color.Surface.ContainerHover,
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -10,6 +10,7 @@ import {
|
||||
Scroll,
|
||||
Text,
|
||||
as,
|
||||
color,
|
||||
config,
|
||||
} from 'folds';
|
||||
import { MatrixEvent, Room } from '$types/matrix-sdk';
|
||||
@@ -125,25 +126,28 @@ export const EventHistory = as<'div', EventHistoryProps>(
|
||||
if (!mEvent.event.sender) return <div />;
|
||||
const EventContent = mEvent.getOriginalContent();
|
||||
return (
|
||||
<Box className={css.EventItem}>
|
||||
<Time
|
||||
ts={mEvent.getTs()}
|
||||
hour24Clock={hour24Clock}
|
||||
dateFormatString={dateFormatString}
|
||||
/>
|
||||
<Text size="T400" style={{ paddingLeft: '10px', wordBreak: 'break-word' }}>
|
||||
<RenderBody
|
||||
body={EventContent?.['m.new_content']?.body ?? EventContent?.body ?? ''}
|
||||
customBody={
|
||||
EventContent?.['m.new_content']?.formatted_body ??
|
||||
EventContent?.formatted_body ??
|
||||
''
|
||||
}
|
||||
htmlReactParserOptions={htmlReactParserOptions}
|
||||
linkifyOpts={linkifyOpts}
|
||||
<>
|
||||
<hr style={{ width: '100%', color: color.Surface.ContainerLine }} />
|
||||
<Box className={css.EventItem}>
|
||||
<Time
|
||||
ts={mEvent.getTs()}
|
||||
hour24Clock={hour24Clock}
|
||||
dateFormatString={dateFormatString}
|
||||
/>
|
||||
</Text>
|
||||
</Box>
|
||||
<Text size="T400" style={{ paddingLeft: '10px', wordBreak: 'break-word' }}>
|
||||
<RenderBody
|
||||
body={EventContent?.['m.new_content']?.body ?? EventContent?.body ?? ''}
|
||||
customBody={
|
||||
EventContent?.['m.new_content']?.formatted_body ??
|
||||
EventContent?.formatted_body ??
|
||||
''
|
||||
}
|
||||
htmlReactParserOptions={htmlReactParserOptions}
|
||||
linkifyOpts={linkifyOpts}
|
||||
/>
|
||||
</Text>
|
||||
</Box>
|
||||
</>
|
||||
);
|
||||
})}
|
||||
</Box>
|
||||
|
||||
Reference in new issue
Block a user