feat: more horizontal space on mobile #2722

Merged
konrad merged 1 commits from dpschen/frontend:feature/more-horizontal-space-on-mobile into main 2022-11-17 16:17:20 +00:00
Member

By adding less outer padding we keep more screen space. This is important especially for small screens.
I assumed that in the task view the background of the list is not that important

By adding less outer padding we keep more screen space. This is important especially for small screens. I assumed that in the task view the background of the list is not _that_ important
dpschen added the
kind/feature
changes requested
labels 2022-11-17 14:36:06 +00:00
konrad was assigned by dpschen 2022-11-17 14:36:06 +00:00
Member

Hi dpschen!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://2722-feature-more-horizontal-space-on--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi dpschen! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://2722-feature-more-horizontal-space-on--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
konrad reviewed 2022-11-17 15:38:26 +00:00
@ -169,3 +165,2 @@
margin-left: 0;
padding-top: 1.5rem;
min-height: calc(100vh - 4rem);
min-height: calc(100dvh - 4rem);

dvh are a nice solution here but the browser support is really poor. We should at least add a fallback, maybe even not using them.

`dvh` are a nice solution here but the browser support is really poor. We should at least add a fallback, maybe even not using them.
Author
Member

We should, because support should soon be better. And this makes really sense for iPhone. But you're right! I thought that postcss-preset-env adds vh as fallback automatically, but probably they decided against it because dvh is not 100% the same as vh, but instead, what you would actually expect vh to be. :D

We should, because support should soon be better. And this makes _really_ sense for iPhone. But you're right! I thought that postcss-preset-env adds `vh` as fallback automatically, but probably they decided against it because `dvh` is not 100% the same as `vh`, but instead, what you would actually expect `vh` to be. :D
Author
Member

After further thinking I removed dvh now. Not because it's wrong, but because it's not used anywhere else. And since some height calculations depend on each other it might break something else if I use it only here.

I might add dvh as mobile optimization at some point. But then everywhere where it's needed at the same time.

After further thinking I removed `dvh` now. Not because it's wrong, but because it's not used anywhere else. And since some height calculations depend on each other it might break something else if I use it _only_ here. I might add `dvh` as mobile optimization at some point. But then everywhere where it's needed at the same time.
konrad marked this conversation as resolved
dpschen force-pushed feature/more-horizontal-space-on-mobile from ebcc0db1e7 to 4c03adb6e2 2022-11-17 16:07:41 +00:00 Compare
konrad approved these changes 2022-11-17 16:14:12 +00:00
konrad scheduled this pull request to auto merge when all checks succeed 2022-11-17 16:14:24 +00:00
konrad merged commit b42e4cca59 into main 2022-11-17 16:17:20 +00:00
dpschen deleted branch feature/more-horizontal-space-on-mobile 2022-11-17 16:34:22 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.