Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about doing
max-width: 800px;
withwidth: 80vw;
?I believe that
max-width
should be a static value.If we use
max-width: 80vw;
, it would expand infinitely and I believe it looks bad.This applies to
padding
as well, however, I think we can userem
instead ofpx
. What I found looked pretty good waspadding: 1.5rem 2rem;
I am bringing up an extreme environment where screen width is
4000px
wide, but I think you will get the point.[
visual viewport
based][
max-width: 800px
w/rem
padding]There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I see here, I think it would be better to have the block margin of
.window
to be dynamic to viewport height, i.e.margin: 10vh auto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the problem is that, the
overlay
error info is not designed for Flexible screen, if U use big screen, the main problem maybe the font-size;There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the problem is that, the
overlay
error info is not designed for Flexible screen, if U use big screen, the main problem maybe the font-size;There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get what you mean, but as we are introducing this change to support mobile viewport, we should consider the wider viewport as well.
If you think my opinion is unrelated to your PR, I will open another PR after this one being merged and continue the discussion! 😊