Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.
Ruby agplai-assistantdockerdsgvogdprhotwireissue-trackerjira-alternativeknowledge-basellmmcp-servermeeting-notesopen-sourceproject-managementredmine-alternativeruby-on-railsself-hostedticketingtime-tracking
fix(glossary): keep a proposal row on one line and the lane actions left
Guido Boyke396f9b3922ab
diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.cssindex 29efc9d..84d8d06 100644--- a/app/assets/stylesheets/application.tailwind.css+++ b/app/assets/stylesheets/application.tailwind.css@@ -524,7 +524,7 @@@layer components {.glossary-tools { @apply gap-3; }.glossary-filters { @apply flex flex-wrap items-center gap-2; }- .glossary-filters__select { @apply w-auto py-1.5 text-[13px]; }+ .glossary-filters__select { @apply w-auto py-1.5 pr-8 text-[13px]; }.glossary-row { @apply items-start; }.glossary-row--rejected .people-row__name { @apply text-muted line-through; }.glossary-row__head { @apply flex min-w-0 flex-wrap items-center gap-1.5; }@@ -534,7 +534,8 @@.glossary-status--proposed { border: 1px solid #C08A3E; color: #8A5A1C; }.dark .glossary-status--proposed { color: #E0B26E; }.glossary-status--rejected { @apply border border-cream-300 text-cream-600; }- .glossary-status-actions { @apply flex flex-none flex-wrap items-center gap-1.5 self-center; }+ .glossary-status-actions { @apply mt-1 flex flex-wrap items-center gap-1.5; }+ .glossary-status-actions--lane { @apply mt-0 self-start; }.glossary-heard { @apply flex flex-col gap-3 border-t border-cream-200 pt-4; }.glossary-heard__groups { @apply flex flex-col gap-3; }.glossary-heard__form { @apply flex items-baseline gap-2 text-sm font-medium text-heading; }diff --git a/app/views/organisations/glossary/_row.html.erb b/app/views/organisations/glossary/_row.html.erbindex 68d16f5..a6afc12 100644--- a/app/views/organisations/glossary/_row.html.erb+++ b/app/views/organisations/glossary/_row.html.erb@@ -30,10 +30,10 @@<span class="people-row__sub glossary-row__origin"><%= origin %></span><% end %><% end %>+ <% if term.proposed? && policy(term).confirm? %>+ <%= render 'organisations/glossary/status_actions', term: term, lane: false %>+ <% end %></span>- <% if term.proposed? && policy(term).confirm? %>- <%= render 'organisations/glossary/status_actions', term: term, lane: false %>- <% end %><span class="glossary-row__count" title="<%= t('views.organisations.glossary.index.corrections_count', count: count) %>"><%= count %><span class="sr-only"> <%= t('views.organisations.glossary.index.corrections_count', count: count) %></span></span>diff --git a/app/views/organisations/glossary/_status_actions.html.erb b/app/views/organisations/glossary/_status_actions.html.erbindex dae4842..0ce2b78 100644--- a/app/views/organisations/glossary/_status_actions.html.erb+++ b/app/views/organisations/glossary/_status_actions.html.erb@@ -3,7 +3,8 @@unless rejected. From the lane the term stays open (term_id sent along),from the list the list stays as it was. %><% params_kept = list_state.merge(lane ? { 'term_id' => term.id } : {}) %>-<div class="glossary-status-actions">+<%# Class names written out: Tailwind keeps only component classes it finds whole in a template. %>+<div class="<%= lane ? 'glossary-status-actions glossary-status-actions--lane' : 'glossary-status-actions' %>"><% unless term.confirmed? %><%= render Neo::Buttons::ButtonComponent.new(variant: :secondary, size: :small, icon: 'check-lg',