Skip to content

Commit

Permalink
fix #70
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Mar 9, 2024
1 parent 18babee commit ac7168d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import dev.datlag.burningseries.shared.SharedRes
import dev.datlag.burningseries.shared.common.onClick
import dev.datlag.burningseries.shared.ui.custom.ExpandableText
import dev.icerock.moko.resources.compose.stringResource

Expand All @@ -22,7 +23,9 @@ fun DescriptionText(description: String) {
expanded = expanded,
text = description,
collapsedMaxLines = 2,
modifier = Modifier.fillMaxWidth().animateContentSize(),
modifier = Modifier.fillMaxWidth().animateContentSize().onClick {
expanded = !expanded
},
toggle = {
IconButton(
onClick = {
Expand Down

0 comments on commit ac7168d

Please sign in to comment.