fix: Ajuster largeur card boutons flottants pour correspondre au menu de droite
This commit is contained in:
parent
f3081a7807
commit
fab3b25094
1 changed files with 5 additions and 5 deletions
|
|
@ -1875,7 +1875,7 @@ export default function ContractEditor({
|
|||
</header>
|
||||
|
||||
{/* Carte flottante avec boutons d'actions + Enregistrer */}
|
||||
<div className="fixed bottom-6 right-6 z-50 flex flex-col gap-3">
|
||||
<div className="fixed bottom-6 right-6 z-50 flex flex-col gap-3 w-full max-w-xs lg:w-[calc(33.333%-1.5rem)]">
|
||||
<Card className="rounded-3xl shadow-lg">
|
||||
<CardContent className="p-3 space-y-2">
|
||||
<Button
|
||||
|
|
@ -1883,7 +1883,7 @@ export default function ContractEditor({
|
|||
disabled={isCancelling || form.etat_de_la_demande === "Annulée"}
|
||||
variant="outline"
|
||||
size="sm"
|
||||
className="w-auto justify-start rounded-2xl px-4 text-red-600 border-red-300 hover:bg-red-50"
|
||||
className="w-full justify-start rounded-2xl px-4 text-red-600 border-red-300 hover:bg-red-50"
|
||||
>
|
||||
<Ban className="size-4 mr-2" />
|
||||
{form.etat_de_la_demande === "Annulée" ? "Annulé" : "Annuler"}
|
||||
|
|
@ -1907,7 +1907,7 @@ export default function ContractEditor({
|
|||
disabled={isRefreshing}
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
className="w-auto justify-start rounded-2xl px-4"
|
||||
className="w-full justify-start rounded-2xl px-4"
|
||||
>
|
||||
<RefreshCw className="size-4 mr-2" />
|
||||
{isRefreshing ? 'Rafraîchissement...' : 'Régénérer'}
|
||||
|
|
@ -1918,7 +1918,7 @@ export default function ContractEditor({
|
|||
disabled={isGeneratingPdf}
|
||||
variant="outline"
|
||||
size="sm"
|
||||
className="w-auto justify-start rounded-2xl px-4"
|
||||
className="w-full justify-start rounded-2xl px-4"
|
||||
>
|
||||
<FileDown className="size-4 mr-2" />
|
||||
{isGeneratingPdf ? "Génération..." : "Créer PDF"}
|
||||
|
|
@ -1934,7 +1934,7 @@ export default function ContractEditor({
|
|||
disabled={isLaunchingSignature || !contract.contract_pdf_filename}
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
className="w-auto justify-start rounded-2xl px-4"
|
||||
className="w-full justify-start rounded-2xl px-4"
|
||||
>
|
||||
<PenTool className="size-4 mr-2" />
|
||||
{isLaunchingSignature ? "Lancement..." : "E-signature"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue