-
Notifications
You must be signed in to change notification settings - Fork 295
enh: redesign email display on phones #11754
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
Closed
CreatorOfBiontium
wants to merge
10
commits into
nextcloud:main
from
CreatorOfBiontium:enh/full_email_width_on_mobile
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
95273e2
enh: displaying emails on phones redesign
CreatorOfBiontium 44dda38
enh: align skeleton loading to left
CreatorOfBiontium 1055abb
fix: phishing suspicion alert align
CreatorOfBiontium e1a3956
fix: fullsize email content under 600px
CreatorOfBiontium 28bfd8a
fix: event div
CreatorOfBiontium 5233aec
enh: show one line of subject
CreatorOfBiontium 1c50c39
enh: pretty animation of collapsing subject
CreatorOfBiontium 19bb877
Merge branch 'main' into enh/full_email_width_on_mobile
CreatorOfBiontium 988e343
fix: code cleanup
CreatorOfBiontium cc10d44
fix: remove unnecesarry space
CreatorOfBiontium File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -287,12 +287,16 @@ export default { | |
| .mail-message-attachments { | ||
| display:flex; | ||
| flex-wrap: wrap; | ||
| padding: 10px 6px 10px 46px; | ||
| padding: 10px 12px 10px 46px; | ||
| margin-top: 4px; | ||
| margin-bottom: 0; | ||
| position:sticky; | ||
| bottom:0; | ||
| bottom: -2px; | ||
| background: linear-gradient(0deg, var(--color-main-background), var(--color-main-background) 90%, rgba(255, 255, 255, 0)); | ||
|
|
||
| @media (max-width: 600px) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| padding: 10px 12px 10px 12px; | ||
| } | ||
| } | ||
|
|
||
| .mail-message-attachments--wrapper { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
I think there is a CSS var for the mobile breakpoint. Perhaps that would be a better option that the hard-coded 600px
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.
There is the --breakpoint-mobile: 1024px but 600-1024 px is wide enough to have an email displayed properly with the margin on the left. I'd keep it just for screens < 600px.
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.
Fair point. But for consistency I'd suggest we use the same breakpoint as in other places. There is no downside of the reduced left margin at 600-1024px.
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.
Okay so I'll fix this else in the next commit or in the diffrent pr.