diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c4d488ef..7ff33cdd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co ### Changed - Change all reference of extension repo to extension store ([@AntsyLich](https://github.com/AntsyLich)) ([#3349](https://github.com/mihonapp/mihon/pull/3349)) - Change the term "Obsolete" to "Orphaned" for extensions ([@AntsyLich](https://github.com/AntsyLich)) ([#3383](https://github.com/mihonapp/mihon/pull/3383)) +- Remove text limit of manga notes ([@AntsyLich](https://github.com/AntsyLich)) ([#3410](https://github.com/mihonapp/mihon/pull/3410)) ### Fixed - Add missing `outlineVariant` color to Nord theme ([@CompileConnected](https://github.com/CompileConnected)) ([#3184](https://github.com/mihonapp/mihon/pull/3184)) diff --git a/app/src/main/java/eu/kanade/presentation/manga/components/MangaNotesTextArea.kt b/app/src/main/java/eu/kanade/presentation/manga/components/MangaNotesTextArea.kt index 12aca3d3b..9e55d0189 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/components/MangaNotesTextArea.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/components/MangaNotesTextArea.kt @@ -55,9 +55,6 @@ import tachiyomi.presentation.core.components.material.padding import tachiyomi.presentation.core.i18n.stringResource import kotlin.time.Duration.Companion.seconds -private const val MAX_LENGTH = 250 -private const val MAX_LENGTH_WARN = MAX_LENGTH * 0.9 - @Composable fun MangaNotesTextArea( state: MangaNotesScreen.State, @@ -102,7 +99,6 @@ fun MangaNotesTextArea( RichTextEditor( state = richTextState, textStyle = MaterialTheme.typography.bodyLarge, - maxLength = MAX_LENGTH, placeholder = { Text(text = stringResource(MR.strings.notes_placeholder)) }, @@ -182,12 +178,7 @@ fun MangaNotesTextArea( contentAlignment = Alignment.Center, ) { Text( - text = (MAX_LENGTH - textLength).toString(), - color = if (textLength > MAX_LENGTH_WARN) { - MaterialTheme.colorScheme.error - } else { - Color.Unspecified - }, + text = textLength.toString(), modifier = Modifier.padding(MaterialTheme.padding.extraSmall), ) }