mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-20 01:05:26 +02:00
Fixed history item text length
This commit is contained in:
parent
9f6ba87f57
commit
3cfebb343d
@ -165,11 +165,11 @@ private fun HistoryListItem(
|
||||
addTokens: (String) -> Unit,
|
||||
) {
|
||||
val clipboardManager = LocalClipboardManager.current
|
||||
val expression = historyItem.expression
|
||||
val expression = historyItem.expression.take(1000)
|
||||
var expressionValue by remember(expression) {
|
||||
mutableStateOf(TextFieldValue(expression, TextRange(expression.length)))
|
||||
}
|
||||
val result = historyItem.result
|
||||
val result = historyItem.result.take(1000)
|
||||
var resultValue by remember(result) {
|
||||
mutableStateOf(TextFieldValue(result, TextRange(result.length)))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user