fix: Alignement des bords arrondis du bouton Enregistrer avec son animation
This commit is contained in:
parent
38cbabaf1a
commit
b89d26d26e
1 changed files with 2 additions and 2 deletions
|
|
@ -2061,7 +2061,7 @@ export default function ContractEditor({
|
|||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<div className={hasUnsavedChanges ? 'relative rounded-[2rem] p-[4px] bg-gradient-to-r from-green-400 via-yellow-400 to-green-400 bg-[length:200%_100%] animate-[gradient_3s_linear_infinite] shadow-lg' : ''}>
|
||||
<div className={hasUnsavedChanges ? 'relative rounded-full p-1 bg-gradient-to-r from-green-400 via-yellow-400 to-green-400 bg-[length:200%_100%] animate-[gradient_3s_linear_infinite] shadow-lg' : ''}>
|
||||
<style jsx>{`
|
||||
@keyframes gradient {
|
||||
0% { background-position: 0% 50%; }
|
||||
|
|
@ -2072,7 +2072,7 @@ export default function ContractEditor({
|
|||
<Button
|
||||
onClick={saveContract}
|
||||
disabled={isSaving || !hasUnsavedChanges}
|
||||
className={`rounded-[2rem] transition-all duration-200 px-6 py-6 text-base font-semibold w-full ${
|
||||
className={`rounded-full transition-all duration-200 px-6 py-6 text-base font-semibold w-full ${
|
||||
hasUnsavedChanges
|
||||
? 'bg-green-600 hover:bg-green-700 text-black'
|
||||
: 'bg-slate-300 text-slate-500 cursor-not-allowed hover:cursor-not-allowed shadow-lg'
|
||||
|
|
|
|||
Loading…
Reference in a new issue