app/components/lookbook/dimensions_display/component.html.erb in lookbook-2.0.2 vs app/components/lookbook/dimensions_display/component.html.erb in lookbook-2.0.3
- old
+ new
@@ -1,10 +1,10 @@
<%= render_component_tag class: "flex items-center text-xs font-mono space-x-1 transition",
":class":"{'!opacity-100': resizing}",
- "@viewport:resize-start.window": "resizing = true",
- "@viewport:resize-complete.window": "resizing = false",
- "@dom:update-start.window": "tearDown",
- "@dom:update-complete.window": "createObserver",
+ "x-on:viewport:resize-start.window": "resizing = true",
+ "x-on:viewport:resize-complete.window": "resizing = false",
+ "x-on:dom:update-start.window": "tearDown",
+ "x-on:dom:update-complete.window": "createObserver",
"x-show": "target" do %>
<span x-text="`${width}px`"></span>
<span class="opacity-70">x</span>
<span x-text="`${height}px`"></span>
<% end %>
\ No newline at end of file