fix(commercial) : aligne le bas du textarea description sur les autres champs
Le textarea (h-full) remplissait toute la cellule alors que les inputs ont un champ de 40px centre dans un conteneur h-12 (~4px de coussin haut ET bas). Le composant n'appliquait qu'un pt-1 (haut) : ajout d'un pb-1 symetrique pour aligner le bord bas. Applique aux 3 ecrans client (creation / edition / consultation).
This commit is contained in:
@@ -92,11 +92,14 @@
|
|||||||
<!-- Onglet Information -->
|
<!-- Onglet Information -->
|
||||||
<template #information>
|
<template #information>
|
||||||
<div class="mt-12 grid grid-cols-4 gap-x-[44px] gap-y-4 bg-white py-4 pl-[28px] pr-[60px] shadow-[0_4px_4px_0_rgba(0,0,0,0.25)]">
|
<div class="mt-12 grid grid-cols-4 gap-x-[44px] gap-y-4 bg-white py-4 pl-[28px] pr-[60px] shadow-[0_4px_4px_0_rgba(0,0,0,0.25)]">
|
||||||
|
<!-- pt-1/pb-1 alignent le textarea (h-full) en haut ET en bas
|
||||||
|
sur les inputs (champ 40px centre dans un h-12 -> ~4px de
|
||||||
|
coussin de chaque cote). -->
|
||||||
<MalioInputTextArea
|
<MalioInputTextArea
|
||||||
v-model="information.description"
|
v-model="information.description"
|
||||||
:label="t('commercial.clients.form.information.description')"
|
:label="t('commercial.clients.form.information.description')"
|
||||||
resize="none"
|
resize="none"
|
||||||
group-class="row-span-2 pt-1"
|
group-class="row-span-2 pt-1 pb-1"
|
||||||
text-input="h-full text-lg"
|
text-input="h-full text-lg"
|
||||||
:readonly="businessReadonly"
|
:readonly="businessReadonly"
|
||||||
:error="informationErrors.errors.description"
|
:error="informationErrors.errors.description"
|
||||||
|
|||||||
@@ -88,11 +88,14 @@
|
|||||||
<!-- Onglet Information -->
|
<!-- Onglet Information -->
|
||||||
<template #information>
|
<template #information>
|
||||||
<div class="mt-12 grid grid-cols-4 gap-x-[44px] gap-y-4 bg-white py-4 pl-[28px] pr-[60px] shadow-[0_4px_4px_0_rgba(0,0,0,0.25)]">
|
<div class="mt-12 grid grid-cols-4 gap-x-[44px] gap-y-4 bg-white py-4 pl-[28px] pr-[60px] shadow-[0_4px_4px_0_rgba(0,0,0,0.25)]">
|
||||||
|
<!-- pt-1/pb-1 alignent le textarea (h-full) en haut ET en bas
|
||||||
|
sur les inputs (champ 40px centre dans un h-12 -> ~4px de
|
||||||
|
coussin de chaque cote). -->
|
||||||
<MalioInputTextArea
|
<MalioInputTextArea
|
||||||
:model-value="information.description"
|
:model-value="information.description"
|
||||||
:label="t('commercial.clients.form.information.description')"
|
:label="t('commercial.clients.form.information.description')"
|
||||||
resize="none"
|
resize="none"
|
||||||
group-class="row-span-2 pt-1"
|
group-class="row-span-2 pt-1 pb-1"
|
||||||
text-input="h-full text-lg"
|
text-input="h-full text-lg"
|
||||||
readonly
|
readonly
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -86,13 +86,15 @@
|
|||||||
<!-- Onglet Information -->
|
<!-- Onglet Information -->
|
||||||
<template #information>
|
<template #information>
|
||||||
<div class="mt-12 grid grid-cols-4 gap-x-[44px] gap-y-4 bg-white py-4 pl-[28px] pr-[60px] shadow-[0_4px_4px_0_rgba(0,0,0,0.25)]">
|
<div class="mt-12 grid grid-cols-4 gap-x-[44px] gap-y-4 bg-white py-4 pl-[28px] pr-[60px] shadow-[0_4px_4px_0_rgba(0,0,0,0.25)]">
|
||||||
<!-- pt-1 : aligne le bord superieur du textarea sur celui des
|
<!-- pt-1/pb-1 alignent le textarea (h-full) sur les inputs, dont
|
||||||
inputs (centres dans un conteneur h-12, soit ~4px de retrait haut). -->
|
le champ de 40px est centre dans un conteneur h-12 (~4px de
|
||||||
|
coussin en HAUT et en BAS). Sans pb-1, le textarea descend ~4px
|
||||||
|
plus bas que les champs voisins. -->
|
||||||
<MalioInputTextArea
|
<MalioInputTextArea
|
||||||
v-model="information.description"
|
v-model="information.description"
|
||||||
:label="t('commercial.clients.form.information.description')"
|
:label="t('commercial.clients.form.information.description')"
|
||||||
resize="none"
|
resize="none"
|
||||||
group-class="row-span-2 pt-1"
|
group-class="row-span-2 pt-1 pb-1"
|
||||||
text-input="h-full text-lg"
|
text-input="h-full text-lg"
|
||||||
:readonly="isValidated('information')"
|
:readonly="isValidated('information')"
|
||||||
:error="informationErrors.errors.description"
|
:error="informationErrors.errors.description"
|
||||||
|
|||||||
Reference in New Issue
Block a user