Skip to content
Snippets Groups Projects
Commit 84a32353 authored by sandcha's avatar sandcha
Browse files

Corrige le dépassement des titres des boutons modification en largeur

parent 6badb577
No related branches found
No related tags found
1 merge request!25Corrige des dimensions des composants sur petit écran
......@@ -11,7 +11,7 @@
// Le style d'un bouton sans le positionnement extérieur et sans les dimensions
const GRAY_BUTTON_STYLE =
"rounded-md shadow-md hover:bg-opacity-90 focus:outline-none bg-gray-200 text-gray-600 text-nowrap uppercase cursor-default"
"rounded-md shadow-md hover:bg-opacity-90 focus:outline-none bg-gray-200 text-gray-600 uppercase cursor-default"
const YELLOW_BUTTON_STYLE =
"rounded-md border border-white bg-le-jaune-dark font-bold uppercase tracking-[0.085em] text-white shadow-lg transition-all duration-200 hover:border-le-jaune-dark hover:bg-gray-100 hover:text-le-jaune-dark active:bg-gray-200 disabled:scale-90 disabled:opacity-0 uppercase"
......@@ -79,14 +79,14 @@
<div>
{#if modificationsNumber == 0}
<button
class="ease-out-back items-center {GRAY_BUTTON_STYLE} flex h-8 grow-0 items-center px-5 py-2 text-sm lg:right-5 xl:right-10"
class="ease-out-back items-center {GRAY_BUTTON_STYLE} p-2 text-sm lg:right-5 xl:right-10"
>
AUCUNE MODIFICATION
</button>
{:else}
<div class="relative my-4 inline-block">
<button
class="ease-out-back items-center {YELLOW_BUTTON_STYLE} px-5 py-2 text-sm lg:right-5 xl:right-10"
class="ease-out-back items-center {YELLOW_BUTTON_STYLE} p-2 text-sm lg:right-5 xl:right-10"
onclick={() => (openPanel = !openPanel)}
>
MODIFICATIONS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment