mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix layout of table views vs. nav bar.
This commit is contained in:
parent
334cecf5a0
commit
089e4a4a02
|
@ -257,13 +257,13 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
return [UIFont ows_regularFontWithSize:basePointSize * 2.f];
|
||||
return [UIFont ows_regularFontWithSize:basePointSize + 18.f];
|
||||
case 2:
|
||||
return [UIFont ows_regularFontWithSize:basePointSize * 1.666f];
|
||||
return [UIFont ows_regularFontWithSize:basePointSize + 12.f];
|
||||
case 3:
|
||||
case 4:
|
||||
case 5:
|
||||
return [UIFont ows_regularFontWithSize:basePointSize * 1.333f];
|
||||
return [UIFont ows_regularFontWithSize:basePointSize + 6.f];
|
||||
default:
|
||||
OWSFail(@"%@ Unexpected jumbomoji count: %zd", self.logTag, self.displayableText.jumbomojiCount);
|
||||
break;
|
||||
|
|
|
@ -398,7 +398,9 @@ NSString * const kOWSTableCellIdentifier = @"kOWSTableCellIdentifier";
|
|||
#pragma clang diagnostic pop
|
||||
}
|
||||
[self.view addSubview:self.tableView];
|
||||
[self.tableView autoPinToSuperviewEdges];
|
||||
[self.tableView autoPinWidthToSuperview];
|
||||
[self.tableView autoPinToTopLayoutGuideOfViewController:self withInset:0];
|
||||
[self.tableView autoPinToBottomLayoutGuideOfViewController:self withInset:0];
|
||||
|
||||
[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:kOWSTableCellIdentifier];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue