mirror of
https://github.com/andwati/ledga.git
synced 2026-11-24 21:08:46 +00:00
v1.5.2: make Home period selector scrollable so 3 Months chip is reachable
This commit is contained in:
@@ -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 ->
|
||||||
|
|||||||
Reference in New Issue
Block a user