Skip to content

Commit 899826a

Browse files
committed
Update templates
1 parent 5259462 commit 899826a

6 files changed

Lines changed: 20 additions & 12 deletions

File tree

assets/css/styles.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,10 @@ svg {
727727
margin-bottom: 1.25rem;
728728
}
729729

730+
.-mr-px {
731+
margin-right: -1px;
732+
}
733+
730734
.ml-1 {
731735
margin-left: 0.25rem;
732736
}
@@ -1947,8 +1951,12 @@ svg {
19471951
vertical-align: -0.05rem;
19481952
}
19491953

1950-
.\[\&\:last-child\>\*\]\:border-0:last-child>* {
1951-
border-width: 0px;
1954+
.\[\&\:nth-last-child\(2\)\>\*\]\:border-b-0:nth-last-child(2)>* {
1955+
border-bottom-width: 0px;
1956+
}
1957+
1958+
.\[\&\:last-child\>\*\]\:border-b-0:last-child>* {
1959+
border-bottom-width: 0px;
19521960
}
19531961

19541962
.\[\&\:checked\~\.dot\]\:translate-x-full:checked~.dot {

assets/js/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ document.querySelectorAll('[data-panel]').forEach(panel => {
4040
if (name === 'error') {
4141
result += `<tr><td colspan="2" class="text-center p-4">${value}</td></tr>`;
4242
} else {
43-
result += `<tr class="[&:last-child>*]:border-0">
43+
result += `<tr class="[&:last-child>*]:border-b-0">
4444
<td class="border-b border-gray-100 px-4 py-1 text-sm font-semibold whitespace-nowrap">${name}</td>
4545
<td class="border-b border-gray-100 px-4 py-1 text-sm">${value}</td>
4646
</tr>`;

templates/dashboards/opcache.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<tbody>
2828
{% if cached_scripts %}
2929
{% for script in cached_scripts %}
30-
<tr class="[&:last-child>*]:border-0" data-key="{{ script.invalidate_url }}">
30+
<tr class="[&:nth-last-child(2)>*]:border-b-0" data-key="{{ script.invalidate_url }}">
3131
<td class="show-path cursor-pointer border-b border-gray-100 px-3 py-2 text-sm font-semibold text-sky-500 md:px-5">{{ script.name }}</td>
3232
<td class="border-b border-gray-100 px-3 py-2 text-sm md:px-5">{{ script.hits }}</td>
3333
<td class="border-b border-gray-100 px-3 py-2 text-sm md:px-5">{{ script.memory }}</td>
@@ -37,8 +37,8 @@
3737
<button type="button" class="delete-key font-semibold text-red-500 hover:text-red-700">Invalidate</button>
3838
</td>
3939
</tr>
40-
<tr class="hidden" data-path="{{ script.invalidate_url }}">
41-
<td colspan="6" class="border-b border-gray-100 px-3 py-2 text-sm md:px-5">{{ script.path }}</td>
40+
<tr class="hidden [&:last-child>*]:border-b-0" data-path="{{ script.invalidate_url }}">
41+
<td colspan="6" class="border-b border-t border-gray-100 px-3 py-2 text-sm md:px-5">{{ script.path }}</td>
4242
</tr>
4343
{% endfor %}
4444
{% else %}

templates/partials/info.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
{% endif %}
77

88
{% if panels_toggler is not defined %}
9-
<label for="toggle-panels" class="mb-3 flex cursor-pointer items-center">
9+
<label for="toggle-panels" class="mb-3 flex cursor-pointer items-center lg:justify-end">
1010
<span class="relative block h-6 w-10 rounded-full bg-gray-400 shadow">
1111
<input type="checkbox" id="toggle-panels"
1212
class="sr-only [&:checked~.dot]:translate-x-full [&:checked~.dot]:bg-gray-900 [&:checked~.dot]:text-white
1313
[&:checked~.dot>.open]:block [&:checked~.dot>.close]:hidden">
1414
<span class="dot absolute left-1 top-1 inline-flex h-4 w-4 items-center justify-center rounded-full text-gray-600 bg-gray-50 transition-transform">
15-
{{ svg('open', 10, 'open hidden') }}
16-
{{ svg('close', 10, 'close') }}
15+
{{ svg('open', 10, 'open -mr-px hidden') }}
16+
{{ svg('close', 10, 'close -mr-px') }}
1717
</span>
1818
</span>
1919
<span class="ml-1 text-sm leading-normal">Toggle panels</span>

templates/partials/info_table.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
<td colspan="2" class="px-4 py-2 text-xs font-bold uppercase whitespace-nowrap">{{ name|replace({'_': ' '}) }}</td>
3232
</tr>
3333
{% for sub_name, sub_value in value %}
34-
<tr class="[&:last-child>*]:border-0">
34+
<tr class="[&:last-child>*]:border-b-0">
3535
<td class="border-b border-gray-100 px-4 py-1 text-sm font-semibold whitespace-nowrap">{{ sub_name }}</td>
3636
<td class="border-b border-gray-100 px-4 py-1 text-sm">{{ sub_value|raw }}</td>
3737
</tr>
3838
{% endfor %}
3939
{% else %}
40-
<tr class="[&:last-child>*]:border-0">
40+
<tr class="[&:last-child>*]:border-b-0">
4141
<td class="border-b border-gray-100 px-4 py-1 text-sm font-semibold whitespace-nowrap">{{ name }}</td>
4242
<td class="border-b border-gray-100 px-4 py-1 text-sm">{{ value|raw }}</td>
4343
</tr>

templates/partials/keys_table.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<tbody>
2121
{% if keys %}
2222
{% for key in keys %}
23-
<tr class="[&:last-child>*]:border-0" data-key="{{ key.key }}">
23+
<tr class="[&:last-child>*]:border-b-0" data-key="{{ key.key }}">
2424
<td class="border-b border-gray-100 px-3 py-2 md:px-5">
2525
<input type="checkbox"
2626
class="checkbox-key checkbox text-{{ color }}-500 -mt-1.5 h-4 w-4 select-none appearance-none rounded border border-gray-300 bg-white align-middle

0 commit comments

Comments
 (0)