From f4e82d069b11664c2bc2b33e2367bef63aa5b52a Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 6 Feb 2025 16:45:16 -0600 Subject: [PATCH] Truncation and alignment --- app/helpers/workflows_helper.rb | 8 ++++++-- app/views/bubbles/show.html.erb | 16 ++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/app/helpers/workflows_helper.rb b/app/helpers/workflows_helper.rb index 1a0cf432a..bd47523de 100644 --- a/app/helpers/workflows_helper.rb +++ b/app/helpers/workflows_helper.rb @@ -4,9 +4,13 @@ module WorkflowsHelper end def button_to_set_stage(bubble, stage) - button_to stage.name, bucket_bubble_stagings_path(bubble.bucket, bubble, stage_id: stage), + button_to bucket_bubble_stagings_path(bubble.bucket, bubble, stage_id: stage), method: :post, class: [ "btn full-width justify-start borderless workflow-stage", { "workflow-stage--current": stage == bubble.stage } ], form_class: "flex align-center gap-half", - data: { turbo_frame: "_top" } + data: { turbo_frame: "_top" } do + tag.span class: "overflow-ellipsis" do + stage.name + end + end end end diff --git a/app/views/bubbles/show.html.erb b/app/views/bubbles/show.html.erb index 88d489342..3ffc1eedd 100644 --- a/app/views/bubbles/show.html.erb +++ b/app/views/bubbles/show.html.erb @@ -24,7 +24,7 @@ <% end %> -