Skip to content
Snippets Groups Projects
Commit 0a101ebf authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Better preview for organizations block

parent c503192e
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,25 @@
iframe
height: 90px
width: 160px
&--partners
display: flex
div
align-items: center
display: flex
height: 90px
justify-content: center
vertical-align: middle
width: 90px
img
display: block
height: 100%
mix-blend-mode: multiply
object-fit: contain
width: 100%
p
font-size: 10px
margin: 0
text-align: center
.sortable-ghost
opacity: 0.3
......@@ -23,7 +23,8 @@
</span>
</span>
</div>
<div class="content-editor__elements__preview">
<div class="content-editor__elements__preview
content-editor__elements__preview--<%= block.template_kind %>">
<%= render "admin/communication/blocks/templates/#{block.template_kind}/snippet", block: block %>
</div>
<%= render 'admin/application/a11y/status', about: block %>
......
<% block.template.elements.first(3).each do |element| %>
<span class="me-2">
<div class="me-2 bg-light p-2">
<% if element.best_logo %>
<%= image_tag element.best_logo, height: 90, class: 'bg-light p-2' %>
<%= image_tag element.best_logo %>
<% else %>
<%= element.best_name %>
<p><%= element.best_name %></p>
<% end %>
</span>
</div>
<% end %>
\ No newline at end of file
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