Skip to content

Commit

Permalink
Fix today tab on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry-Hiles committed Dec 30, 2023
1 parent abf45c9 commit 4b616ad
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4b616ad

Please sign in to comment.