From 5c2d12177a95b498630ec70fc522c327ebbba23d Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 24 Apr 2025 16:00:12 -0500 Subject: [PATCH] Type polish and sizing constraints --- app/assets/stylesheets/panels.css | 3 ++- app/views/collections/_access_toggle.erb | 2 +- app/views/collections/edit.html.erb | 14 +++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/panels.css b/app/assets/stylesheets/panels.css index f5a9919ac..3d4620288 100644 --- a/app/assets/stylesheets/panels.css +++ b/app/assets/stylesheets/panels.css @@ -24,7 +24,8 @@ margin: auto; .panel { - flex: 1 1 25%; + flex: 1 1 33%; + min-inline-size: 36ch; } } } diff --git a/app/views/collections/_access_toggle.erb b/app/views/collections/_access_toggle.erb index aee7bb248..318415703 100644 --- a/app/views/collections/_access_toggle.erb +++ b/app/views/collections/_access_toggle.erb @@ -1,4 +1,4 @@ -
  • +
  • <%= avatar_tag user %>
    diff --git a/app/views/collections/edit.html.erb b/app/views/collections/edit.html.erb index 299a3a555..3df4c91ab 100644 --- a/app/views/collections/edit.html.erb +++ b/app/views/collections/edit.html.erb @@ -13,8 +13,8 @@ <% end %>
    -
    - Name and access +
    + Name and Access

    Choose who can access this Collection.

    <%= form_with model: @collection, class: "flex flex-column gap txt-large", data: { controller: "form" } do |form| %>
    @@ -27,7 +27,7 @@
    <%= access_menu_tag @collection do %> -
  • +
  • <%= icon_tag "everyone" %> Everyone @@ -75,17 +75,17 @@
    Workflows -

    Use a Workflow to track progress in this Collection.

    <%= form_with model: @collection, url: collection_workflow_path(@collection), local: true, method: :patch, data: { controller: "form" } do |form| %> + <%= form.label :workflow_id, "Use a Workflow to track progress in this Collection.", class: "flex justify-center margin-block-end" %> <%= form.select :workflow_id, Workflow.all.map { |w| [w.name, w.id] }, { include_blank: "Choose…" }, class: "input input--select full-width", data: { action: "change->form#submit" } %> <% end %>

    <%= link_to "Manage workflows", workflows_path, class: "btn btn--plain txt-link" %>

    - Auto-close Cards -

    Cards Fizzle Out when there is no activity for…

    - <%= select_tag :auto_close_after, options_for_select(Card::Closeable::AUTO_CLOSE_OPTIONS, Card::Closeable::AUTO_CLOSE_AFTER), { class: "input input--select full-width margin-block-end", data: { action: "change->form#submit" } } %> + Auto-Close Cards + + <%= select_tag :closure, options_for_select(Card::Closeable::AUTO_CLOSE_OPTIONS, Card::Closeable::AUTO_CLOSE_AFTER), { class: "input input--select full-width margin-block-end", data: { action: "change->form#submit" } } %>