mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Merge pull request #4482 from stuartbreckenridge/main
💄 Modernises table view styling.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user