mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
#1336 (dark mode newsletters)
- Added the NB-newsletter class to the story HTML when a newsletter.
This commit is contained in:
parent
b25ad68eea
commit
5003b3edd8
1 changed files with 8 additions and 1 deletions
|
@ -523,6 +523,12 @@
|
|||
// }
|
||||
// }
|
||||
|
||||
NSString *storyClassSuffix = @"";
|
||||
|
||||
if (appDelegate.storiesCollection.activeFeed[@"is_newsletter"]) {
|
||||
storyClassSuffix = @" NB-newsletter";
|
||||
}
|
||||
|
||||
NSString *riverClass = (appDelegate.storiesCollection.isRiverView ||
|
||||
appDelegate.storiesCollection.isSocialView ||
|
||||
appDelegate.storiesCollection.isSavedView ||
|
||||
|
@ -580,7 +586,7 @@
|
|||
|
||||
NSString *htmlContent = [NSString stringWithFormat:@
|
||||
"%@" // header
|
||||
" <div id=\"NB-story\" class=\"NB-story\">%@</div>"
|
||||
" <div id=\"NB-story\" class=\"NB-story%@\">%@</div>"
|
||||
" <div class=\"NB-text-view-premium-only\">%@</div>"
|
||||
" <div id=\"NB-sideoptions-container\">%@</div>"
|
||||
" <div id=\"NB-comments-wrapper\">"
|
||||
|
@ -589,6 +595,7 @@
|
|||
" %@"
|
||||
"%@", // footer
|
||||
htmlTop,
|
||||
storyClassSuffix,
|
||||
storyContent,
|
||||
premiumTextString,
|
||||
sharingHtmlString,
|
||||
|
|
Loading…
Add table
Reference in a new issue