v1.5.2: make Home period selector scrollable so 3 Months chip is reachable

This commit is contained in:
ngenohkevin
2026-06-13 11:02:16 +03:00
parent 0a1cadff57
commit 9d7fc230f4
2 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ android {
applicationId = "com.ledga.app" applicationId = "com.ledga.app"
minSdk = 26 minSdk = 26
targetSdk = 34 targetSdk = 34
versionCode = 19 versionCode = 20
versionName = "1.5.1" versionName = "1.5.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
} }
@@ -2,6 +2,7 @@ package com.ledga.app.ui.home
import androidx.compose.foundation.background import androidx.compose.foundation.background
import androidx.compose.foundation.clickable import androidx.compose.foundation.clickable
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Column
@@ -158,8 +159,13 @@ fun HomeScreen(
} }
// ---- Period selector ---- // ---- Period selector ----
// Horizontally scrollable so every chip stays reachable — four
// long-labelled chips overflow a fixed Row on narrow screens / large
// font scales, which would clip the last one ("3 Months") off-edge.
Row( Row(
modifier = Modifier.fillMaxWidth(), modifier = Modifier
.fillMaxWidth()
.horizontalScroll(rememberScrollState()),
horizontalArrangement = Arrangement.spacedBy(Space.s3), horizontalArrangement = Arrangement.spacedBy(Space.s3),
) { ) {
Period.entries.forEach { period -> Period.entries.forEach { period ->