From 7fe87bfce55c1c0947cd77f0a5504c847c037a19 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 6 Apr 2025 13:47:27 +0200 Subject: [PATCH] This neednt be a turbo frame Just because we are targeting something with a stream update does not mean it needs to be a frame. The frame is only necessary when there is lazy loading or we are creating a closed update loop. --- app/views/bubbles/cards/perma/_tags.html.erb | 42 ++++++++++---------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/app/views/bubbles/cards/perma/_tags.html.erb b/app/views/bubbles/cards/perma/_tags.html.erb index 1114ec300..3f670a61f 100644 --- a/app/views/bubbles/cards/perma/_tags.html.erb +++ b/app/views/bubbles/cards/perma/_tags.html.erb @@ -1,24 +1,22 @@ -<%= turbo_frame_tag bubble, :tags do %> -
-
- <% if bubble.tags.any? || bubble.creating? %> - # - <% bubble.tags.each_with_index do |tag, index| %> - <%= link_to bubbles_path(bucket_ids: [ bubble.bucket ], tag_ids: [ tag.id ]), - class: "card__tag btn btn--plain min-width txt-uppercase fill-transparent", data: { turbo_frame: "_top" } do %> - <%= tag.title %> - <% end %><%= ", " unless index == bubble.tags.size - 1 %> - <% end %> +
+
+ <% if bubble.tags.any? || bubble.creating? %> + # + <% bubble.tags.each_with_index do |tag, index| %> + <%= link_to bubbles_path(bucket_ids: [ bubble.bucket ], tag_ids: [ tag.id ]), + class: "card__tag btn btn--plain min-width txt-uppercase fill-transparent", data: { turbo_frame: "_top" } do %> + <%= tag.title %> + <% end %><%= ", " unless index == bubble.tags.size - 1 %> + <% end %> <% end %> -
- -
- - - <%= turbo_frame_tag bubble, :tagging, src: new_bubble_tagging_path(bubble) %> -
-<% end %> + +
+ + + <%= turbo_frame_tag bubble, :tagging, src: new_bubble_tagging_path(bubble) %> +
+