Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 1, 2025

Home screen content gets cut off on small devices and landscape orientation because the layout lacks scroll support.

Changes

  • Added verticalScroll(rememberScrollState()) to the main Column in MainLandingScreen
  • Replaced wrapContentSize(Alignment.Center) with horizontalAlignment parameter and top spacer for scroll-compatible centering
  • Removed redundant .align(Alignment.CenterHorizontally) from child elements
Column(
    modifier = Modifier
        .fillMaxSize()
        .padding(innerPadding)
        .verticalScroll(rememberScrollState()),
    horizontalAlignment = Alignment.CenterHorizontally,
) {
    Spacer(modifier = Modifier.height(32.dp))
    // content...
}

Follows the same scroll pattern used in AppAdditionalConfigs.kt.

Original prompt

This section details on the original issue you should resolve

<issue_title>Home screen is not scrollable</issue_title>
<issue_description>Home screen is not scrollable on small device making some contents cut off, specially on landscape mode. Fix it.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@hossain-khan hossain-khan marked this pull request as ready for review December 1, 2025 08:42
Copilot AI changed the title [WIP] Fix home screen is not scrollable on small devices Fix home screen not scrollable on small devices and landscape mode Dec 1, 2025
Copilot AI requested a review from hossain-khan December 1, 2025 08:43
@hossain-khan hossain-khan merged commit 4e06254 into main Dec 1, 2025
2 checks passed
@hossain-khan hossain-khan deleted the copilot/fix-home-screen-scrollability branch December 1, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Home screen is not scrollable

2 participants