From 4b616ad6126480f7ec5aa751954f1709989b85d9 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 30 Dec 2023 15:37:28 -0500 Subject: [PATCH] Fix today tab on small screens --- .../com/henryhiles/qweather/presentation/tabs/TodayTab.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/henryhiles/qweather/presentation/tabs/TodayTab.kt b/app/src/main/java/com/henryhiles/qweather/presentation/tabs/TodayTab.kt index 51433d8..f2c3b89 100644 --- a/app/src/main/java/com/henryhiles/qweather/presentation/tabs/TodayTab.kt +++ b/app/src/main/java/com/henryhiles/qweather/presentation/tabs/TodayTab.kt @@ -1,7 +1,10 @@ package com.henryhiles.qweather.presentation.tabs +import androidx.compose.foundation.gestures.scrollable import androidx.compose.foundation.layout.* +import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.text.selection.SelectionContainer +import androidx.compose.foundation.verticalScroll import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Home import androidx.compose.material.icons.filled.Refresh @@ -83,7 +86,8 @@ object TodayTab : NavigationTab { Column( modifier = Modifier .fillMaxSize() - .padding(16.dp), + .padding(16.dp) + .verticalScroll(rememberScrollState()), verticalArrangement = Arrangement.spacedBy(16.dp) ) { dailyWeatherViewModel.state.dailyWeatherData?.get(0)