Make preview templates lighter
This commit is contained in:
@@ -4,37 +4,15 @@
|
||||
id="<%= dom_id(bubble, :ticket) %>">
|
||||
<header class="card__header flex align-center gap min-width">
|
||||
<span class="card__bucket txt-uppercase overflow-ellipsis txt-reversed"><%= bubble.bucket.name %></span>
|
||||
|
||||
<%= render "bubbles/cards/preview/tags", bubble: bubble %>
|
||||
</header>
|
||||
|
||||
<div class="card__body flex gap full-width flex-item-grow">
|
||||
<div class="card__body-header">
|
||||
<h1 class="card__title">
|
||||
<% if bubble.published? %>
|
||||
<%= turbo_frame_tag bubble, :edit do %>
|
||||
<%= link_to bubble_title(bubble), edit_bucket_bubble_path(bubble.bucket, bubble), class: "card__title-link overflow-line-clamp" %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= form_with model: bubble, url: bucket_bubble_path(bubble.bucket, bubble), id: "bubble_form", data: { controller: "auto-save" } do |form| %>
|
||||
<%= form.text_area :title, placeholder: "Name it…",
|
||||
class: "input input--textarea full-width borderless txt-align-start #{ "fill-highlight" if bubble.creating? }",
|
||||
autofocus: bubble.title.blank?,
|
||||
data: { action: "auto-save#change blur->auto-save#submit keydown.enter->auto-save#submit:prevent keydown.ctrl+enter->auto-save#submit:prevent" } %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<span class="card__title-link overflow-line-clamp"><%= bubble_title(bubble) %></span>
|
||||
</h1>
|
||||
<%= link_to bucket_bubble_path(bubble.bucket, bubble), class: "card__link" do %>
|
||||
<span class="for-screen-reader"><%= bubble_title(bubble) %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% if bubble.considering? %>
|
||||
<%= button_to bucket_bubble_engagement_path(bubble.bucket, bubble), method: :post, class: "card__move-button card__hide-on-index btn btn--reversed" do %>
|
||||
<%= icon_tag "menu" %>
|
||||
<span class="txt-nowrap">Move to Doing</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<footer class="card__footer full-width flex align-start gap">
|
||||
|
||||
Reference in New Issue
Block a user