Skip to content
Snippets Groups Projects
Commit c235f9ce authored by Gabriel Engel's avatar Gabriel Engel
Browse files

Merge pull request #1170 from RocketChat/improvement/image-oembed

Improve image oembed
parents e15c534f d992da77
No related branches found
No related tags found
No related merge requests found
<template name="oembedImageWidget">
{{#if showImage}}
<a href="{{url}}" class="swipebox" target="_blank">
{{#if parsedUrl}}
<div class="inline-image" style="background-image: url({{url}});"></div>
{{/if}}
</a>
{{#if parsedUrl}}
<div>
<a href="{{url}}" class="swipebox" target="_blank">
<div class="inline-image" style="background-image: url({{url}});">
<img src="{{url}}">
</div>
</a>
</div>
{{/if}}
{{else}}
{{#if parsedUrl}}
<div class="image-to-download" data-url="{{url}}">
......
......@@ -2520,7 +2520,17 @@ a.github-fork {
background-size: contain;
background-repeat: no-repeat;
background-position: center left;
height: 200px;
display: inline-block;
line-height: 0px;
box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
border-radius: 3px;
overflow: hidden;
img {
max-height: 200px;
max-width: 100%;
opacity: 0;
}
}
}
&.temp .body {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment