Merge pull request #4482 from stuartbreckenridge/main

💄 Modernises table view styling.
This commit is contained in:
Brent Simmons
2025-01-12 20:43:45 -08:00
committed by GitHub
2 changed files with 12 additions and 9 deletions

View File

@@ -205,8 +205,8 @@ pre code {
.nnw-overflow table {
margin-bottom: 1px;
border-spacing: 0;
border: 1px solid var(--secondary-accent-color);
font-size: inherit;
border-collapse: collapse;
}
.nnw-overflow table table {
@@ -220,7 +220,9 @@ pre code {
border: 1px solid var(--table-cell-border-color);
border-top: none;
border-left: none;
padding: 5px;
border-right: none;
padding: 8px 11px;
text-align: left;
}
.nnw-overflow tr :matches(td, th):last-child {
@@ -444,10 +446,6 @@ a.footnote:hover,
padding: 5px;
}
.nnw-overflow table {
border: 1px solid var(--secondary-accent-color);
}
}
/* macOS Specific */
@@ -518,7 +516,4 @@ a.footnote:hover,
padding: 10px;
}
.nnw-overflow table {
border: 1px solid var(--accent-color);
}
}

View File

@@ -189,6 +189,14 @@ class ArticleViewController: UIViewController {
view.layoutIfNeeded()
}
override func willTransition(to newCollection: UITraitCollection, with coordinator: any UIViewControllerTransitionCoordinator) {
// We only want to show bars when rotating to horizontalSizeClass == .regular
// (i.e., big) iPhones to resolve crash #4483.
if UIDevice.current.userInterfaceIdiom == .phone && newCollection.horizontalSizeClass == .regular {
currentWebViewController?.showBars()
}
}
func updateUI() {
guard let article = article else {