Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix height of container in List page. #45

Merged
merged 1 commit into from
May 25, 2023
Merged

Conversation

jongranados
Copy link
Collaborator

@jongranados jongranados commented May 25, 2023

Description

The List page did not extend to the height of the viewport when the user's list did not fill the entire screen (when their list was empty or when their list was short).

Related Issue

Closes #42

Acceptance Criteria

  • List page container extends to the height of the viewport even when its content does not fill the screen.

Type of Changes

Type
🐛 Bug fix
✨ New feature
🔨 Refactoring
💯 Add tests
🔗 Update dependencies
📜 Docs

Updates

Before

3 4

After

1 2 ## Testing Steps / QA Criteria

@github-actions
Copy link

Visit the preview URL for this PR (updated for commit e5a4e1e):

https://tcl-57-smart-shopping-list--pr45-jg-fix-list-page-hei-ou5mfjcb.web.app

(expires Thu, 01 Jun 2023 04:34:56 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: ad3eb6c34c2ec5986fcc218178df5985eb9c9ffb

@jongranados jongranados marked this pull request as ready for review May 25, 2023 04:39
@@ -86,7 +87,7 @@ export function List({ data, listToken }) {
}

return (
<>
<Box minHeight="100vh">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! So this wasn't a container issue in Layout.jsx? I was wondering why all the other pages were fine now and not this page.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha! Nice fix, @jongranados!

Copy link
Collaborator

@Amy-Pr Amy-Pr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Approved!

@jongranados jongranados merged commit b41d01d into main May 25, 2023
3 checks passed
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.

21. Fix height of container in List page.
3 participants