mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Display image messages from the stream
This commit is contained in:
parent
3e35a9f96e
commit
30efb04060
2 changed files with 10 additions and 1 deletions
|
@ -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 a new issue