diff --git a/app/components/samples/editable_cell.rb b/app/components/samples/editable_cell.rb
index ff9c7efbc1..c9658bf2d3 100644
--- a/app/components/samples/editable_cell.rb
+++ b/app/components/samples/editable_cell.rb
@@ -6,11 +6,30 @@ class EditableCell < Component
with_collection_parameter :field
erb_template <<~ERB
-
- <%= form_with(url: editable_namespace_project_sample_metadata_field_path(@sample.project.namespace.parent, @sample.project, @sample), method: :get) do |form| %>
+ |
+ <%= form_with(
+ url: editable_namespace_project_sample_metadata_field_path(
+ @sample.project.namespace.parent,
+ @sample.project,
+ @sample
+ ),
+ method: :get,
+ class: "w-full"
+ ) do |form| %>
+
<%= form.hidden_field :field, value: @field %>
<%= form.hidden_field :format, value: "turbo_stream" %>
- <%= form.submit @sample.metadata[@field] || "", class: "cursor-pointer p-4 hover:bg-slate-50 dark:hover:bg-slate-600 focus:ring-4 focus:outline-none focus:ring-primary-200 dark:focus:ring-primary-700 w-full text-left", autofocus: @autofocus %>
+
+
<% end %>
|
ERB