-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for tweet rendering in NetNewsWire
It does some pretty aggressive reformatting of HTML: - tables are wrapped in a `<div class="nnw-overflow">` (https://github.com/Ranchero-Software/NetNewsWire/blob/b52292d4590ab07616981dffd5956aec6deea15f/Shared/Article%20Rendering/main.js#L55-L64) which ends up adding borders around everything (https://github.com/Ranchero-Software/NetNewsWire/blob/ff19a9c48e6b0b3f6f27de34e02a43ef9ded7e22/iOS/Resources/styleSheet.css#L50-L52) - background colors, text colors and text size are stripped (https://github.com/Ranchero-Software/NetNewsWire/blob/b52292d4590ab07616981dffd5956aec6deea15f/Shared/Article%20Rendering/main.js#L15-L26) - Images get a "viewer" unless they have a `nnw-nozoom` class (https://github.com/Ranchero-Software/NetNewsWire/blob/ff19a9c48e6b0b3f6f27de34e02a43ef9ded7e22/iOS/Resources/main_ios.js#L111-L123) Switch tweet display to flexbox and to not depend as heavily on background colors. Footer/status font sizes are controlled with a <font> tag.
- Loading branch information
Showing
4 changed files
with
41 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
<table style="border-spacing:0;border-collapse:collapse;font-family:sans-serif;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;color:{{ BUBBLE_TEXT_COLOR }};width:100%" cellpadding="0"> | ||
<div style="color:{{ BUBBLE_TEXT_COLOR }}"> | ||
{% if grouped_statuses %} | ||
{% for status_group in grouped_statuses %} | ||
{% with '1.5em' as bottom_margin %} | ||
{% include 'base/status-group.snippet' %} | ||
{% endwith %} | ||
{% endfor %} | ||
{% else %} | ||
<tr> | ||
<td style="padding:0.5em"> | ||
No updates for this day. | ||
</td> | ||
</tr> | ||
<div style="padding:0.5em"> | ||
No updates for this day. | ||
</div> | ||
{% endif %} | ||
</table> | ||
</div> |