-
Notifications
You must be signed in to change notification settings - Fork 5
Modify loopmail ui #1
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| language: objective-c | ||
| osx_image: xcode9.4 | ||
| osx_image: xcode10 | ||
|
|
||
| script: xcodebuild -project iOS/break/break.xcodeproj -scheme break CODE_SIGNING_ALLOWED=NO |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| html, body { | ||
| font-size: 16px; | ||
| margin: 0.5rem; | ||
| } | ||
|
|
||
| h1.subject { | ||
| font-weight: bold; | ||
| font-size: 1.4rem; | ||
| margin-bottom: 0.2rem; | ||
| } | ||
|
|
||
| .sender { | ||
| color: #AAA; | ||
| font-weight: 300; | ||
| } | ||
|
|
||
| .user { | ||
| display: inline-block; | ||
| font-size: 1rem; | ||
| padding: 2px 16px; | ||
| border-radius: 16px; | ||
| background: rgba(26, 188, 156, 0.25); | ||
| color: rgba(26, 188, 156, 1.0); | ||
| } | ||
|
|
||
| hr.divider { | ||
| border: none; | ||
| border: 0.5px solid rgba(0, 0, 0, 0.1 | ||
| ); | ||
| margin: 1rem 0 2rem 0; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ class LoopMailViewController: UITableViewController, Refreshable, UISearchResult | |
|
|
||
| static let dateFormatter: DateFormatter = { | ||
| let dateFormatter = DateFormatter() | ||
| dateFormatter.doesRelativeDateFormatting = true | ||
| dateFormatter.dateStyle = .long | ||
| dateFormatter.timeStyle = .short | ||
| return dateFormatter | ||
|
|
@@ -100,6 +101,10 @@ class LoopMailViewController: UITableViewController, Refreshable, UISearchResult | |
| tableView.deselectRow(at: indexPath, animated: true) | ||
| } | ||
|
|
||
| override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { | ||
|
Owner
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. This should already be set in the storyboard, AFAIK, since the table cells already rely on AutoLayout. Did something not work for you?
Author
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. From my testing it looks like both the Table and the Table Cells need auto-layout/auto-sizing, this seemed to be enabled for the table but the table cells seemed to use a fixed custom height in the storyboard
Owner
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. I'm not sure I understand you here. The layout of the table itself should be managed by This works for me. Is this not what you are seeing? |
||
| return UITableViewAutomaticDimension | ||
| } | ||
|
|
||
| override func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? { | ||
| let replyAction = UITableViewRowAction(style: .default, title: "Reply") { [weak self] _, indexPath in | ||
| guard let `self` = self else { | ||
|
|
||

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'd like to hold off on this change for now. It's not that I wouldn't like this being added, but I want to check where else I can add this and have it be a separate commit.