Skip to content

Commit 868779d

Browse files
committed
Fix pomodoro configuration field size and release 1.0.0-RC.10
1 parent a819798 commit 868779d

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

pom-application/.idea/codeStyles/Project.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom-application/.idea/codeStyles/codeStyleConfig.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom-application/.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom-application/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ android {
2626
applicationId "net.dzikoysk.presenceofmind"
2727
minSdk 29
2828
targetSdk 32
29-
versionCode 9
30-
versionName "1.0.0-RC.9"
29+
versionCode 10
30+
versionName "1.0.0-RC.10"
3131
archivesBaseName = "presence-of-mind-$versionName"
3232

3333
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

pom-application/app/src/main/java/net/dzikoysk/presenceofmind/pages/dashboard/editor/PomodoroConfiguration.kt

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package net.dzikoysk.presenceofmind.pages.dashboard.editor
22

3+
import androidx.compose.foundation.layout.Box
34
import androidx.compose.foundation.layout.padding
45
import androidx.compose.runtime.Composable
56
import androidx.compose.ui.Modifier
@@ -26,16 +27,19 @@ fun PomodoroConfiguration(
2627
pomodoroAttribute: PomodoroAttribute,
2728
updateTask: UpdateTask
2829
) {
29-
NumberField(
30-
modifier = Modifier.padding(top = 10.dp),
31-
description = "Expected attention in minutes",
32-
value = pomodoroAttribute.expectedAttentionInMinutes,
33-
onValueChange = {
34-
updateTask(task.copy(
35-
pomodoroAttribute = pomodoroAttribute.copy(
36-
expectedAttentionInMinutes = it
30+
Box(Modifier.padding(vertical = 10.dp, horizontal = 8.dp)) {
31+
NumberField(
32+
description = "Expected attention in minutes",
33+
value = pomodoroAttribute.expectedAttentionInMinutes,
34+
onValueChange = {
35+
updateTask(
36+
task.copy(
37+
pomodoroAttribute = pomodoroAttribute.copy(
38+
expectedAttentionInMinutes = it
39+
)
40+
)
3741
)
38-
))
39-
}
40-
)
42+
}
43+
)
44+
}
4145
}

0 commit comments

Comments
 (0)