Skip to content

Commit c52235e

Browse files
committed
Fixes
1 parent ed1216b commit c52235e

File tree

6 files changed

+15
-27
lines changed

6 files changed

+15
-27
lines changed

assets/css/styles.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@
194194
.-mt-1\.5 {
195195
margin-top: calc(0.25rem * -1.5);
196196
}
197-
.mr-1 {
198-
margin-right: calc(0.25rem * 1);
199-
}
200197
.mr-3 {
201198
margin-right: calc(0.25rem * 3);
202199
}

templates/components/button.twig

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@
66
{% set btn_color = 'bg-primary-500 hover:bg-primary-600 focus:ring-primary-200 disabled:bg-primary-300 dark:bg-primary-700 dark:hover:bg-primary-800 dark:focus:ring-primary-400 dark:disabled:bg-primary-400' %}
77
{% endif %}
88

9-
{% set classes = 'text-sm inline-flex items-center border border-transparent rounded-sm py-1.5 px-3 font-semibold text-white align-middle shadow-sm focus:ring-3 dark:text-white ' ~ btn_color %}
9+
{% set classes = 'text-sm inline-flex items-center gap-1 border border-transparent rounded-sm py-1.5 px-3 font-semibold text-white align-middle shadow-sm focus:ring-3 dark:text-white ' ~ btn_color %}
1010

1111
{% if link %}
12-
<a href="{{ link }}" class="{{ classes ~ class|space }}">
13-
{% if icon %}
14-
{{ svg(icon, 12, (text ? 'mr-1' : '')) }}
15-
{% endif %}
16-
{{ text }}
17-
</a>
12+
<a href="{{ link }}" class="{{ classes ~ class|space }}">{{ icon ? svg(icon, 12) : '' }}{{ text }}</a>
1813
{% else %}
1914
{% macro attr(attributes) %}
2015
{% for name, value in attributes %}
@@ -29,9 +24,6 @@
2924
{% set id = id is not empty ? 'id="' ~ id ~ '" name="' ~ id ~ '" ' : '' %}
3025

3126
<button type="{{ submit ? 'submit' : 'button' }}" {{ id|raw }}class="{{ classes ~ class|space }}"{{ _self.attr(attributes) }}>
32-
{% if icon %}
33-
{{ svg(icon, 12, (text ? 'mr-1' : '')) }}
34-
{% endif %}
35-
{{ text }}
27+
{{ icon ? svg(icon, 12) : '' }}{{ text }}
3628
</button>
3729
{% endif %}

templates/dashboards/opcache.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
include('components/button.twig', {
44
text: (is_ignored ? 'Show' : 'Ignore') ~ ' scripts from this tool',
55
link: link(['pp', 'p'], {'ignore': (is_ignored ? 'no' : 'yes')}),
6-
class: 'mr-1',
76
})
87
],
98
head_items: [

templates/partials/table_view.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
{% endfor %}
5656
{% if show_actions %}
5757
<td class="px-3 py-2 border-b border-gray-200 text-sm whitespace-nowrap dark:border-gray-700">
58-
<button class="delete-key text-red-500 hover:text-red-700 font-semibold inline-flex items-center" type="button" title="Delete">
59-
{{ svg('trash', 16, 'mr-1') }} Delete
58+
<button class="delete-key text-red-500 hover:text-red-700 font-semibold inline-flex items-center gap-1" type="button" title="Delete">
59+
{{ svg('trash', 16) }} Delete
6060
</button>
6161
</td>
6262
{% endif %}

templates/partials/view_key.twig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838

3939
<span>
4040
{% if export_url %}
41-
<a href="{{ export_url }}" class="inline-flex items-center font-semibold text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300">
42-
{{ svg('export', 16, 'mr-1') }} Export
41+
<a href="{{ export_url }}" class="inline-flex items-center gap-1 font-semibold text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300">
42+
{{ svg('export', 16) }} Export
4343
</a>
4444
{% endif %}
4545

4646
{% if delete_url %}
47-
<a href="{{ delete_url }}" class="inline-flex items-center font-semibold text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300"
47+
<a href="{{ delete_url }}" class="inline-flex items-center gap-1 font-semibold text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300"
4848
onclick="return confirm('Are you sure you want to remove this item?');">
49-
{{ svg('trash', 16, 'mr-1') }} Delete
49+
{{ svg('trash', 16) }} Delete
5050
</a>
5151
{% endif %}
5252
</span>
@@ -56,8 +56,8 @@
5656
{{ include('partials/view_key_array.twig') }}
5757
{% else %}
5858
{% if edit_url %}
59-
<a href="{{ edit_url ~ encode_url }}" class="mr-3 mb-4 inline-flex items-center font-semibold text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300">
60-
{{ svg('edit', 16, 'mr-1') }} Edit
59+
<a href="{{ edit_url ~ encode_url }}" class="mr-3 mb-4 inline-flex items-center gap-1 font-semibold text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300">
60+
{{ svg('edit', 16) }} Edit
6161
</a>
6262
{% endif %}
6363
<div class="rounded-sm bg-white border border-gray-200 dark:bg-gray-800 dark:border-gray-700">

templates/partials/view_key_array.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232

3333
<div>
3434
{% if type not in types.extra.hide_edit %}
35-
<a href="{{ edit_url }}&{{ types[type].param }}={{ item.key ~ item_encode_url }}" class="text-gray-500 hover:text-gray-700 font-semibold inline-flex items-center mr-3 dark:text-gray-400 dark:hover:text-gray-300">
36-
{{ svg('edit', 16, 'mr-1') }} Edit
35+
<a href="{{ edit_url }}&{{ types[type].param }}={{ item.key ~ item_encode_url }}" class="text-gray-500 hover:text-gray-700 font-semibold inline-flex items-center gap-1 mr-3 dark:text-gray-400 dark:hover:text-gray-300">
36+
{{ svg('edit', 16) }} Edit
3737
</a>
3838
{% endif %}
39-
<a href="{{ deletesub_url }}&{{ types[type].param }}={{ item.key }}" class="text-red-500 hover:text-red-700 font-semibold inline-flex items-center dark:text-red-400 dark:hover:text-red-300"
39+
<a href="{{ deletesub_url }}&{{ types[type].param }}={{ item.key }}" class="text-red-500 hover:text-red-700 font-semibold inline-flex items-center gap-1 dark:text-red-400 dark:hover:text-red-300"
4040
onclick="return confirm('Are you sure you want to remove this item?');">
41-
{{ svg('trash', 16, 'mr-1') }} Delete
41+
{{ svg('trash', 16) }} Delete
4242
</a>
4343
</div>
4444
</div>

0 commit comments

Comments
 (0)