feat(ui): token w-m-btn-action partagé + fix alignement pagination DataTable

- Nouveau token de largeur partagé `w-m-btn-action` (150px) exposé via
  tailwind.config.ts + CSS var `--m-btn-action-width` dans malio.css.
  Themable côté consommateur en redéfinissant la CSS var dans son :root.
- DataTable : pagination réalignée verticalement après l'introduction du
  `min-h-[1rem]` sur MalioSelect — la barre passe en `items-center` et le
  MalioSelect du sélecteur perPage est encapsulé dans un wrapper `h-12`
  qui borne sa taille flex à la hauteur du field. Span « Lignes : » et
  boutons Prev/Page/Next désormais centrés exactement sur le field.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-01 09:17:58 +02:00
parent ce9b4853e6
commit 39eb6e6068
6 changed files with 29 additions and 16 deletions
+17 -15
View File
@@ -57,25 +57,27 @@
<div
v-if="totalItems > 0"
class="flex justify-between pt-2"
class="flex items-center justify-between pt-2"
data-test="pagination"
>
<div class="flex gap-4">
<span class="whitespace-nowrap text-[16px] text-black self-center">Lignes :</span>
<MalioSelect
:model-value="perPage"
:options="perPageSelectOptions"
min-width="w-20 !mt-0"
rounded="rounded"
text-field="text-sm"
text-value="text-sm"
text-label="text-xs"
data-test="per-page-select"
@update:model-value="onPerPageChange"
/>
<div class="flex items-center gap-4">
<span class="whitespace-nowrap text-[16px] text-black">Lignes :</span>
<div class="h-12">
<MalioSelect
:model-value="perPage"
:options="perPageSelectOptions"
group-class="w-20"
rounded="rounded"
text-field="text-sm"
text-value="text-sm"
text-label="text-xs"
data-test="per-page-select"
@update:model-value="onPerPageChange"
/>
</div>
</div>
<nav aria-label="Pagination" class="flex gap-1" data-test="pagination-nav">
<nav aria-label="Pagination" class="flex items-center gap-1" data-test="pagination-nav">
<MalioButton
variant="tertiary"
label="Prev"