Chat file and img type msg fix

This commit is contained in:
mrfry 2021-06-01 13:52:43 +02:00
parent 4491e5a14a
commit 7e93e41edc
3 changed files with 9 additions and 4 deletions

View file

@ -31,7 +31,6 @@ body {
}
img {
margin: 5px;
max-width: 90%;
}

View file

@ -546,7 +546,13 @@ export default class Chat extends React.Component {
)
} else if (type === 'file') {
return (
<a key={key} href={msg} rel="noreferrer" target="_blank">
<a
className={`${styles.messageEntry}`}
key={key}
href={msg}
rel="noreferrer"
target="_blank"
>
{msg.split('/').slice(-1)}
</a>
)

View file

@ -145,11 +145,11 @@
justify-content: flex-end;
}
.ownMsg > div {
.ownMsg > * {
background-color: #99f;
}
.partnerMsg > div {
.partnerMsg > * {
background-color: var(--primary-color);
}