Skip to content

Commit

Permalink
ExpandableMangaDescription: Adjust size transform anim spec
Browse files Browse the repository at this point in the history
Co-authored-by: ivan <12537387+ivaniskandar@users.noreply.github.com>
  • Loading branch information
AntsyLich and ivaniskandar committed Aug 7, 2024
1 parent 3126308 commit 1c16fc7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package eu.kanade.presentation.manga.components

import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.spring
import androidx.compose.animation.graphics.res.animatedVectorResource
import androidx.compose.animation.graphics.res.rememberAnimatedVectorPainter
import androidx.compose.animation.graphics.vector.AnimatedImageVector
Expand Down Expand Up @@ -271,7 +272,8 @@ fun ExpandableMangaDescription(
modifier = Modifier
.padding(top = 8.dp)
.padding(vertical = 12.dp)
.animateContentSize(),
.animateContentSize(animationSpec = spring())
.fillMaxWidth(),
) {
var showMenu by remember { mutableStateOf(false) }
var tagSelected by remember { mutableStateOf("") }
Expand Down

0 comments on commit 1c16fc7

Please sign in to comment.