Skip to content

style: Responsive containers#137

Merged
fmorency merged 13 commits intoliftedinit:mainfrom
stanleyjones:responsive-containers
Sep 11, 2023
Merged

style: Responsive containers#137
fmorency merged 13 commits intoliftedinit:mainfrom
stanleyjones:responsive-containers

Conversation

@stanleyjones
Copy link
Copy Markdown
Contributor

@stanleyjones stanleyjones commented Aug 31, 2023

HOME-SMALL

Screenshot 2023-08-31 at 2 44 52 PM

HOME-MEDIUM

Screenshot 2023-08-31 at 2 44 09 PM

(Scales all the way up to "XL")

Closes #132.

ACCOUNTS

Screenshot 2023-08-31 at 2 44 19 PM

(Same thing, only screenshot included here.)

Closes #133.

@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 31, 2023

Deploy Preview for lifted-alberto ready!

Name Link
🔨 Latest commit 1d685d2
🔍 Latest deploy log https://app.netlify.com/sites/lifted-alberto/deploys/64f10a30cd3a2800088ecb02
😎 Deploy Preview https://deploy-preview-137--lifted-alberto.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines -37 to -43
const [, setContainerProps] = usePageContainerProvider()

React.useLayoutEffect(() => {
setContainerProps({
w: { base: "full" },
})
}, [setContainerProps])
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This didn't seem to be doing anything. We don't even use PageContainer on Home so it may not have been fully implemented or something.

Comment on lines +17 to +24
<Container
maxW={{
base: "auto",
md: "container.sm",
lg: "container.md",
xl: "container.lg",
}}
>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Swapping in a Container for a PageContainer and adding the responsive sizes is the only change on this page. The rest is just formatting.

Comment thread src/views/home/home.tsx
Comment on lines +53 to +60
<Container
maxW={{
base: "auto",
md: "container.sm",
lg: "container.md",
xl: "container.lg",
}}
>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The Home page was artificially limited to "container.sm" size. Now it scales up with the display.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 31, 2023

Codecov Report

Merging #137 (1d685d2) into main (5d7b88b) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #137      +/-   ##
==========================================
+ Coverage   33.84%   33.93%   +0.08%     
==========================================
  Files          88       88              
  Lines        2266     2260       -6     
  Branches      656      656              
==========================================
  Hits          767      767              
+ Misses       1488     1482       -6     
  Partials       11       11              
Files Changed Coverage Δ
...views/accounts/account-details/account-details.tsx 0.00% <ø> (ø)
src/views/accounts/accounts-list/accounts-list.tsx 0.00% <ø> (ø)
src/views/accounts/accounts.tsx 0.00% <ø> (ø)
src/views/home/home.tsx 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@fmorency
Copy link
Copy Markdown
Contributor

fmorency commented Sep 5, 2023

@stanleyjones is this ready for review?

@stanleyjones
Copy link
Copy Markdown
Contributor Author

@fmorency Yes. Sorry, I forgot to request a review. I'll add you now.

@stanleyjones
Copy link
Copy Markdown
Contributor Author

Oh weird, I can't modify reviewers or assignee. That must be why I didn't.

@fmorency fmorency merged commit 983fe14 into liftedinit:main Sep 11, 2023
@stanleyjones stanleyjones deleted the responsive-containers branch December 6, 2023 21:20
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.

Resize Activity window Scale center wallet area with the browser

2 participants