Fix service spacing in edit mode

This commit is contained in:
Rafał Kobyłko 2024-08-22 22:23:03 +02:00
parent 2f220b1473
commit 224fdbf8de

View File

@ -141,6 +141,7 @@ fun DsService(
text = state.info,
textStyles = textStyles,
style = style,
spacer = editMode.not(),
modifier = Modifier.fillMaxWidth(),
)
@ -154,7 +155,7 @@ fun DsService(
code = state.code,
nextCode = state.nextCode,
timer = state.timer,
nextCodeVisible = state.isNextCodeEnabled(showNextCode) && state.revealed,
nextCodeVisible = state.isNextCodeEnabled(showNextCode) && state.revealed && editMode.not(),
nextCodeGravity = when (style) {
ServiceStyle.Default -> NextCodeGravity.Below
ServiceStyle.Compact -> NextCodeGravity.End