Skip to content

Commit

Permalink
Merge pull request #1300 from nextcloud/fix-header-insets
Browse files Browse the repository at this point in the history
Fix header insets on splitView
  • Loading branch information
Ivansss authored Jul 12, 2023
2 parents 75bf64a + 430b261 commit bad9da7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions NextcloudTalk/RoomSearchTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ - (void)viewDidLoad
{
[super viewDidLoad];
[self.tableView registerNib:[UINib nibWithNibName:kRoomTableCellNibName bundle:nil] forCellReuseIdentifier:kRoomCellIdentifier];
// Align header's title to ContactsTableViewCell's label
self.tableView.separatorInset = UIEdgeInsetsMake(0, 72, 0, 0);
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
// Align header's title to ContactsTableViewCell's label
self.tableView.separatorInset = UIEdgeInsetsMake(0, 52, 0, 0);
self.tableView.separatorInsetReference = UITableViewSeparatorInsetFromAutomaticInsets;
// Contacts placeholder view
_roomSearchBackgroundView = [[PlaceholderView alloc] init];
[_roomSearchBackgroundView setImage:[UIImage imageNamed:@"conversations-placeholder"]];
Expand Down
5 changes: 3 additions & 2 deletions NextcloudTalk/RoomsTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ - (void)viewDidLoad

[self.tableView registerNib:[UINib nibWithNibName:kRoomTableCellNibName bundle:nil] forCellReuseIdentifier:kRoomCellIdentifier];
// Align header's title to ContactsTableViewCell's label
self.tableView.separatorInset = UIEdgeInsetsMake(0, 72, 0, 0);

self.tableView.separatorInset = UIEdgeInsetsMake(0, 52, 0, 0);
self.tableView.separatorInsetReference = UITableViewSeparatorInsetFromAutomaticInsets;

self.addButton.accessibilityLabel = NSLocalizedString(@"Create a new conversation", nil);
self.addButton.accessibilityHint = NSLocalizedString(@"Double tap to create group, public or one to one conversations.", nil);

Expand Down

0 comments on commit bad9da7

Please sign in to comment.