parent
09febc6ff1
commit
448177c2d1
|
@ -16,6 +16,10 @@ directly impact users rather than highlighting other key architectural updates.*
|
||||||
### Changed
|
### Changed
|
||||||
- We've improved the visibility logic of the little loader that is part of the Balances widget
|
- We've improved the visibility logic of the little loader that is part of the Balances widget
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
- Concatenation of the messages on a multi-messages transaction has been removed and will be addressed using a new
|
||||||
|
design
|
||||||
|
|
||||||
## [1.0 (638)] - 2024-04-26
|
## [1.0 (638)] - 2024-04-26
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -729,10 +729,6 @@ private fun HistoryItemMessagePart(
|
||||||
onAction: (TrxItemAction) -> Unit,
|
onAction: (TrxItemAction) -> Unit,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
// TODO [#1315]: Proper more messages in transaction displaying
|
|
||||||
// TODO [#1315]: https://github.com/Electric-Coin-Company/zashi-android/issues/1315
|
|
||||||
val composedMessage = messages.joinToString(separator = "\n\n")
|
|
||||||
|
|
||||||
val textStyle: TextStyle
|
val textStyle: TextStyle
|
||||||
val textColor: Color
|
val textColor: Color
|
||||||
if (state.isFailed()) {
|
if (state.isFailed()) {
|
||||||
|
@ -758,8 +754,11 @@ private fun HistoryItemMessagePart(
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.border(width = 1.dp, color = ZcashTheme.colors.textFieldFrame)
|
.border(width = 1.dp, color = ZcashTheme.colors.textFieldFrame)
|
||||||
) {
|
) {
|
||||||
|
// TODO [#1315]: Proper more messages in transaction displaying
|
||||||
|
// TODO [#1315]: Note we display the first one only for now
|
||||||
|
// TODO [#1315]: https://github.com/Electric-Coin-Company/zashi-android/issues/1315
|
||||||
Text(
|
Text(
|
||||||
text = composedMessage,
|
text = messages[0],
|
||||||
style = textStyle,
|
style = textStyle,
|
||||||
color = textColor,
|
color = textColor,
|
||||||
modifier = Modifier.padding(all = ZcashTheme.dimens.spacingMid)
|
modifier = Modifier.padding(all = ZcashTheme.dimens.spacingMid)
|
||||||
|
@ -776,7 +775,7 @@ private fun HistoryItemMessagePart(
|
||||||
modifier =
|
modifier =
|
||||||
Modifier
|
Modifier
|
||||||
.clip(RoundedCornerShape(ZcashTheme.dimens.regularRippleEffectCorner))
|
.clip(RoundedCornerShape(ZcashTheme.dimens.regularRippleEffectCorner))
|
||||||
.clickable { onAction(TrxItemAction.MessageClick(composedMessage)) }
|
.clickable { onAction(TrxItemAction.MessageClick(messages[0])) }
|
||||||
.padding(all = ZcashTheme.dimens.spacingTiny)
|
.padding(all = ZcashTheme.dimens.spacingTiny)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue