Skip to content

Commit df4798a

Browse files
committed
Small fix
1 parent 8065066 commit df4798a

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

assets/css/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,10 @@ svg {
18131813
vertical-align: middle;
18141814
}
18151815

1816+
.\[\&\>svg\]\:align-\[-0\.05rem\]>svg {
1817+
vertical-align: -0.05rem;
1818+
}
1819+
18161820
.\[\&\:last-child\>\*\]\:border-0:last-child>* {
18171821
border-width: 0px;
18181822
}

templates/partials/keys_table.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
</td>
4040
<td class="border-b border-gray-100 px-3 md:px-5 py-2 text-sm whitespace-nowrap">
4141
{% set edit_url = edit_url|replace({'ttl_value': key_ttl}) %}
42-
<a class="text-gray-500 hover:text-gray-700 font-semibold mr-3" href="{{ edit_url ~ key.key }}" title="Edit">
42+
<a class="text-gray-500 hover:text-gray-700 font-semibold mr-3 [&>svg]:align-[-0.05rem]" href="{{ edit_url ~ key.key }}" title="Edit">
4343
{{ svg('edit', 12) }}<span class="hidden lg:inline-block ml-1">Edit</span>
4444
</a>
45-
<button class="text-red-500 hover:text-red-700 font-semibold delete-key" type="button" title="Delete">
45+
<button class="text-red-500 hover:text-red-700 font-semibold [&>svg]:align-[-0.05rem] delete-key" type="button" title="Delete">
4646
{{ svg('trash', 12) }}<span class="hidden lg:inline-block ml-1">Delete</span>
4747
</button>
4848
</td>

templates/partials/view_key.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</div>
2727

2828
{% if value is iterable %}
29-
<a href="{{ add_subkey }}" class="text-{{ color }}-500 hover:text-{{ color }}-700 font-semibold inline-flex items-center mb-2">
29+
<a href="{{ add_subkey }}" class="text-{{ color }}-500 hover:text-{{ color }}-700 font-semibold inline-flex items-center gap-1 mb-2">
3030
{{ svg('open') }} Add another value
3131
</a>
3232

@@ -67,10 +67,10 @@
6767
</span>
6868

6969
<div>
70-
<a href="{{ edit_url }}&{{ param_name }}={{ item.key ~ item_encode_url }}" class="text-gray-500 hover:text-gray-700 font-semibold mr-3 inline-block mr-3">
70+
<a href="{{ edit_url }}&{{ param_name }}={{ item.key ~ item_encode_url }}" class="text-gray-500 hover:text-gray-700 font-semibold mr-3 inline-block mr-3 [&>svg]:align-[-0.05rem]">
7171
{{ svg('edit', 13) }} Edit
7272
</a>
73-
<a href="{{ delete_url }}&{{ param_name }}={{ item.key }}" class="text-red-500 hover:text-red-700 font-semibold inline-block"
73+
<a href="{{ delete_url }}&{{ param_name }}={{ item.key }}" class="text-red-500 hover:text-red-700 font-semibold inline-block [&>svg]:align-[-0.05rem]"
7474
onclick="return confirm('Are you sure you want to remove this item?');">
7575
{{ svg('trash', 13) }} Delete
7676
</a>

0 commit comments

Comments
 (0)