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