commit 89e94050c7136a09de5d6ad2e92d1fb2bd08b5d2
parent 163281c8a7b18e7cc14aabbe552fb84b70225a38
Author: MTRNord <MTRNord@users.noreply.github.com>
Date: Tue, 29 Jul 2025 23:39:05 +0200
Fix now line at end of day
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/src/main/java/space/midnightthoughts/nordiccalendar/screens/CalendarScreen.kt b/app/src/main/java/space/midnightthoughts/nordiccalendar/screens/CalendarScreen.kt
@@ -305,8 +305,7 @@ fun DayView(
eventEndOverride = shownEnd
)
}
- // "Jetzt"-Linie und Label, nur wenn im Tagesbereich
- if (nowOffsetY >= 0f && nowOffsetY <= hourHeightPx * 24) {
+ if (nowOffsetY >= 0f && nowOffsetY <= hourHeightPx * 24.5f) {
Row(
modifier = Modifier
.fillMaxWidth()
@@ -324,7 +323,8 @@ fun DayView(
) {
Text(
Date(now).toInstant()
- .atZone(ZoneId.systemDefault()).toLocalDateTime().format(hourFormat),
+ .atZone(ZoneId.systemDefault()).toLocalDateTime()
+ .format(hourFormat),
color = MaterialTheme.colorScheme.onError,
style = MaterialTheme.typography.labelSmall
)
@@ -341,7 +341,7 @@ fun DayView(
0f,
size.height / 2
),
- end = androidx.compose.ui.geometry.Offset(
+ end = Offset(
size.width,
size.height / 2
),