Skip to content

Commit

Permalink
Template list grid, template filters and category label text size on …
Browse files Browse the repository at this point in the history
…edit template (#1917)
  • Loading branch information
amazingphilippe authored Jul 31, 2024
1 parent b45837b commit dce8425
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/javascripts/scheduler.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/stylesheets/index.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion app/assets/stylesheets/tailwind/components/message.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
@layer components {
/*! purgecss start ignore */
.message-name {
grid-column: span 2;
@apply m-0 leading-tight font-bold text-title;
}
@media (min-width: theme("screens.sm")) {
.message-name {
grid-column: span 2;
}
}
.message-name a:hover {
@apply text-blue-lightblue;
}
Expand Down
4 changes: 2 additions & 2 deletions app/templates/components/template-category.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{% endif %}
<div id="tc_button_container" class="mb-gutter {% if expanded %}hidden{% endif %}" data-testid="tc_button_container">
<div>
<p class="inline-flex items-center rounded-full bg-lime-100 px-4 py-2">
<i aria-hidden="true" class="p-1 fa-solid fa-fas fa-tag mr-4 text-lime-700"></i> {{ field_text }}
<p class="inline-flex items-center rounded-full bg-lime-100 px-4 py-2 text-small">
<i aria-hidden="true" class="p-1 fa-solid fa-fas fa-tag mr-2 text-lime-700"></i> {{ field_text }}
</p>
</div>
<h3 class=" mt-0 pt-0 heading-small">{{ _('Does the category still apply?') }}</h3>
Expand Down
5 changes: 4 additions & 1 deletion app/templates/components/template-filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
<div class="template-filter" data-row-selector="{{ row_selector }}">
<details data-testid="filter">
<summary data-testid="filter-toggle">{{ _("Apply filters") }}</summary>
<nav class="flex p-0 gap-gutter pl-gutter mt-2" aria-label="{{ _('Filter by template type and category') }}" data-testid="filter-content">
<div>
<nav class="flex p-0 gap-gutter mt-2" aria-label="{{ _('Filter by template type and category') }}"
data-testid="filter-content">
{# Filter group for notification types #}
<div class="filter-list" data-target="{{ notification_type_data_attribue }}">
<h2 class="filter-heading">{{ _("Type") }}</h2>
Expand All @@ -49,6 +51,7 @@ <h2 class="filter-heading">{{ _("Category") }}</h2>
</div>
</div>
</nav>
</div>
</details>
</div>

Expand Down

0 comments on commit dce8425

Please sign in to comment.