Fix: Mejorar animacion de crecimiento del area de input
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m7s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m7s
- Cambiar animacion a translateY para mejor rendimiento - Agregar transition-all al contenedor del input - El contenedor crece suavemente cuando hay archivos seleccionados
This commit is contained in:
@@ -372,25 +372,21 @@ const getTypePlaceholder = (type: MessageType): string => {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/* Slide up animation for previews */
|
/* Slide up animation for previews */
|
||||||
.slide-up-enter-active,
|
.slide-up-enter-active {
|
||||||
.slide-up-leave-active {
|
transition: all 0.3s ease-out;
|
||||||
transition: all 0.3s ease;
|
}
|
||||||
overflow: hidden;
|
|
||||||
|
.slide-up-leave-active {
|
||||||
|
transition: all 0.2s ease-in;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slide-up-enter-from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(20px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-up-enter-from,
|
|
||||||
.slide-up-leave-to {
|
.slide-up-leave-to {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
max-height: 0;
|
transform: translateY(10px);
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
padding-top: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.slide-up-enter-to,
|
|
||||||
.slide-up-leave-from {
|
|
||||||
opacity: 1;
|
|
||||||
max-height: 200px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -225,8 +225,8 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Input -->
|
<!-- Input - grows when media is selected -->
|
||||||
<div class="p-4 border-t border-[var(--wa-border)]">
|
<div class="p-4 border-t border-[var(--wa-border)] transition-all duration-300 ease-out">
|
||||||
<MessagesMessageInput
|
<MessagesMessageInput
|
||||||
:replying-to="replyingTo"
|
:replying-to="replyingTo"
|
||||||
@send="handleSendMessage"
|
@send="handleSendMessage"
|
||||||
|
|||||||
Reference in New Issue
Block a user