mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Chat file and img type msg fix
This commit is contained in:
parent
4491e5a14a
commit
7e93e41edc
3 changed files with 9 additions and 4 deletions
|
@ -31,7 +31,6 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
margin: 5px;
|
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -546,7 +546,13 @@ export default class Chat extends React.Component {
|
||||||
)
|
)
|
||||||
} else if (type === 'file') {
|
} else if (type === 'file') {
|
||||||
return (
|
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)}
|
{msg.split('/').slice(-1)}
|
||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
|
|
|
@ -145,11 +145,11 @@
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ownMsg > div {
|
.ownMsg > * {
|
||||||
background-color: #99f;
|
background-color: #99f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.partnerMsg > div {
|
.partnerMsg > * {
|
||||||
background-color: var(--primary-color);
|
background-color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue