app/views/lookbook/partials/_preview.html.erb in lookbook-0.2.3 vs app/views/lookbook/partials/_preview.html.erb in lookbook-0.2.4

- old
+ new

@@ -1,9 +1,9 @@ <div class="w-full bg-gray-50"> <div class="h-full relative mx-auto bg-white" x-data="preview" :style="`width: ${$store.preview.width}`"> <iframe src="<%= url_for lookbook.preview_path %>" - srcdoc="<%== @preview_srcdoc %>" + <% if config.preview_srcdoc %>srcdoc="<%== @preview_srcdoc %>"<% end %> frameborder="0" class="h-full w-full border-l border-gray-300 pr-4 -mx-px" x-data="sizeObserver" x-effect="viewportWidth = observedWidth; viewportHeight = observedHeight;" seamless></iframe> \ No newline at end of file