|
1 | 1 | <div class="mb-4 rounded-sm bg-white border border-gray-200 dark:bg-gray-800 dark:border-gray-700"> |
2 | | - <div class="px-6 py-4 md:flex justify-between"> |
3 | | - <div class="flex gap-3"> |
| 2 | + <div class="px-6 py-4 md:flex flex-wrap gap-3 justify-between"> |
| 3 | + <div class="flex gap-3 flex-wrap"> |
4 | 4 | {% if treeview %} |
5 | | - <div class="flex border rounded-sm overflow-hidden border-gray-300 dark:border-gray-600 [&>.active]:text-gray-600 dark:[&>.active]:text-gray-300 [&>.active]:bg-gray-200 dark:[&>.active]:bg-gray-950"> |
6 | | - <a href="{{ link([], {'view': 'table'}) }}" title="Table view" class="{{ get('view', config('list-view', 'table')) == 'table' ? 'active ' : '' }}flex items-center justify-center px-3 py-2 text-gray-400 dark:text-gray-500"> |
7 | | - {{ svg('tableview', 18) }} |
8 | | - </a> |
9 | | - <a href="{{ link([], {'view': 'tree'}) }}" title="Tree view" class="{{ get('view', config('list-view', 'table')) == 'tree' ? 'active ' : '' }}flex items-center justify-center px-3 py-2 text-gray-400 dark:text-gray-500 border-l border-gray-300 dark:border-gray-600"> |
10 | | - {{ svg('treeview', 18) }} |
11 | | - </a> |
| 5 | + <div> |
| 6 | + <div class="flex border rounded-sm overflow-hidden border-gray-300 dark:border-gray-600 [&>.active]:text-gray-600 dark:[&>.active]:text-gray-300 [&>.active]:bg-gray-200 dark:[&>.active]:bg-gray-950"> |
| 7 | + <a href="{{ link([], {'view': 'table'}) }}" title="Table view" class="{{ get('view', config('list-view', 'table')) == 'table' ? 'active ' : '' }}flex items-center justify-center px-3 py-2 text-gray-400 dark:text-gray-500"> |
| 8 | + {{ svg('tableview', 18) }} |
| 9 | + </a> |
| 10 | + <a href="{{ link([], {'view': 'tree'}) }}" title="Tree view" class="{{ get('view', config('list-view', 'table')) == 'tree' ? 'active ' : '' }}flex items-center justify-center px-3 py-2 text-gray-400 dark:text-gray-500 border-l border-gray-300 dark:border-gray-600"> |
| 11 | + {{ svg('treeview', 18) }} |
| 12 | + </a> |
| 13 | + </div> |
12 | 14 | </div> |
13 | 15 | {% endif %} |
14 | 16 |
|
15 | 17 | {% if all_keys != 0 %} |
16 | | - <div class="flex" id="search_form"> |
17 | | - <input type="text" id="search_key" value="{{ search_value }}" placeholder="( / ) Search..." aria-label="( / ) Search..." |
18 | | - class="w-full md:w-72 rounded-l border border-gray-300 bg-white py-1.5 px-3 text-sm |
19 | | - focus:outline-hidden focus:ring-3 focus:ring-primary-200 focus:border-primary-300 |
20 | | - dark:border-gray-600 dark:bg-gray-800 dark:text-white dark:placeholder-gray-400 |
21 | | - dark:focus:ring-primary-500 dark:focus:border-primary-400"> |
22 | | - {{ include('components/button.twig', { |
23 | | - text: '', |
24 | | - icon: 'search', |
25 | | - id: 'submit_search', |
26 | | - class: 'rounded-l-none', |
27 | | - }) }} |
| 18 | + <div> |
| 19 | + <div class="flex" id="search_form"> |
| 20 | + <input type="text" id="search_key" value="{{ search_value }}" placeholder="( / ) Search..." aria-label="( / ) Search..." |
| 21 | + class="w-full md:w-72 rounded-l border border-gray-300 bg-white py-1.5 px-3 text-sm |
| 22 | + focus:outline-hidden focus:ring-3 focus:ring-primary-200 focus:border-primary-300 |
| 23 | + dark:border-gray-600 dark:bg-gray-800 dark:text-white dark:placeholder-gray-400 |
| 24 | + dark:focus:ring-primary-500 dark:focus:border-primary-400"> |
| 25 | + {{ include('components/button.twig', { |
| 26 | + text: '', |
| 27 | + icon: 'search', |
| 28 | + id: 'submit_search', |
| 29 | + class: 'rounded-l-none', |
| 30 | + }) }} |
| 31 | + </div> |
28 | 32 | </div> |
29 | 33 | {% endif %} |
30 | 34 | </div> |
31 | 35 |
|
32 | | - <div class="md:flex gap-2"> |
| 36 | + <div class="md:flex gap-2 flex-wrap"> |
33 | 37 | {% for button in custom_buttons %} |
34 | 38 | {{ button|raw }} |
35 | 39 | {% endfor %} |
|
0 commit comments