diff --git a/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png b/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png index 9353f43..d0873a8 100644 Binary files a/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png and b/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png differ diff --git a/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png b/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png index 9353f43..d0873a8 100644 Binary files a/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png and b/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png differ diff --git a/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.String_short.all_expanded.png b/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.String_short.all_expanded.png index 72ce436..255ce63 100644 Binary files a/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.String_short.all_expanded.png and b/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.String_short.all_expanded.png differ diff --git a/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.String_short.readLessText_expanded.png b/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.String_short.readLessText_expanded.png index 72ce436..255ce63 100644 Binary files a/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.String_short.readLessText_expanded.png and b/readmore-foundation/screenshots/BasicReadMoreTextScreenshotTest.String_short.readLessText_expanded.png differ diff --git a/readmore-foundation/src/main/java/com/webtoonscorp/android/readmore/foundation/BasicReadMoreText.kt b/readmore-foundation/src/main/java/com/webtoonscorp/android/readmore/foundation/BasicReadMoreText.kt index 6e59441..598ec4f 100644 --- a/readmore-foundation/src/main/java/com/webtoonscorp/android/readmore/foundation/BasicReadMoreText.kt +++ b/readmore-foundation/src/main/java/com/webtoonscorp/android/readmore/foundation/BasicReadMoreText.kt @@ -247,7 +247,7 @@ private fun CoreReadMoreText( val currentText = buildAnnotatedString { if (expanded) { append(text) - if (readLessTextWithStyle.isNotEmpty()) { + if (state.isCollapsible && readLessTextWithStyle.isNotEmpty()) { append(' ') if (toggleArea == ToggleArea.More) { withLink( diff --git a/readmore-material/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png b/readmore-material/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png index 27d3d0d..091983c 100644 Binary files a/readmore-material/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png and b/readmore-material/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png differ diff --git a/readmore-material/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png b/readmore-material/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png index 27d3d0d..091983c 100644 Binary files a/readmore-material/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png and b/readmore-material/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png differ diff --git a/readmore-material/screenshots/ReadMoreTextScreenshotTest.String_short.all_expanded.png b/readmore-material/screenshots/ReadMoreTextScreenshotTest.String_short.all_expanded.png index afbd1c4..b124deb 100644 Binary files a/readmore-material/screenshots/ReadMoreTextScreenshotTest.String_short.all_expanded.png and b/readmore-material/screenshots/ReadMoreTextScreenshotTest.String_short.all_expanded.png differ diff --git a/readmore-material/screenshots/ReadMoreTextScreenshotTest.String_short.readLessText_expanded.png b/readmore-material/screenshots/ReadMoreTextScreenshotTest.String_short.readLessText_expanded.png index afbd1c4..b124deb 100644 Binary files a/readmore-material/screenshots/ReadMoreTextScreenshotTest.String_short.readLessText_expanded.png and b/readmore-material/screenshots/ReadMoreTextScreenshotTest.String_short.readLessText_expanded.png differ diff --git a/readmore-material3/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png b/readmore-material3/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png index a952cf6..0ed69c4 100644 Binary files a/readmore-material3/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png and b/readmore-material3/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.all_expanded.png differ diff --git a/readmore-material3/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png b/readmore-material3/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png index a952cf6..0ed69c4 100644 Binary files a/readmore-material3/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png and b/readmore-material3/screenshots/ReadMoreTextScreenshotTest.AnnotatedString_short.readLessText_expanded.png differ diff --git a/readmore-material3/screenshots/ReadMoreTextScreenshotTest.String_short.all_expanded.png b/readmore-material3/screenshots/ReadMoreTextScreenshotTest.String_short.all_expanded.png index b0dfcaf..7452c1f 100644 Binary files a/readmore-material3/screenshots/ReadMoreTextScreenshotTest.String_short.all_expanded.png and b/readmore-material3/screenshots/ReadMoreTextScreenshotTest.String_short.all_expanded.png differ diff --git a/readmore-material3/screenshots/ReadMoreTextScreenshotTest.String_short.readLessText_expanded.png b/readmore-material3/screenshots/ReadMoreTextScreenshotTest.String_short.readLessText_expanded.png index b0dfcaf..7452c1f 100644 Binary files a/readmore-material3/screenshots/ReadMoreTextScreenshotTest.String_short.readLessText_expanded.png and b/readmore-material3/screenshots/ReadMoreTextScreenshotTest.String_short.readLessText_expanded.png differ