mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-27 04:49:22 -05:00
Display image messages from the stream
This commit is contained in:
parent
3e35a9f96e
commit
30efb04060
@ -187,6 +187,14 @@ h1 {
|
||||
border: 0px ! important;
|
||||
}
|
||||
|
||||
.image {
|
||||
display: block;
|
||||
max-width:320px;
|
||||
max-height:320px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.bubble {
|
||||
padding: 6px;
|
||||
padding-left: 1em;
|
||||
|
@ -32,7 +32,8 @@
|
||||
<td ng-class="!msg.content.membership_target ? (msg.content.msgtype === 'm.emote' ? 'emote text' : 'text') : ''">
|
||||
<div class="bubble">
|
||||
{{ msg.content.msgtype === "m.emote" ? ("* " + (members[msg.user_id].displayname || msg.user_id) + " ") : "" }}
|
||||
{{ msg.content.body }}
|
||||
{{ msg.content.msgtype === "m.text" ? msg.content.body : "" }}
|
||||
<img class="image" ng-hide='msg.content.msgtype !== "m.image"' src="{{ msg.content.url }}" alt="{{ msg.content.body }}"/>
|
||||
</div>
|
||||
</td>
|
||||
<td class="rightBlock">
|
||||
|
Loading…
Reference in New Issue
Block a user