mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
adding in new sharebar
This commit is contained in:
parent
50a4ea2224
commit
4f70c5e66a
3 changed files with 42 additions and 42 deletions
|
@ -325,42 +325,27 @@
|
|||
if ([appDelegate.activeStory objectForKey:@"share_count"] != [NSNull null] &&
|
||||
[[appDelegate.activeStory objectForKey:@"share_count"] intValue] > 0) {
|
||||
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||
comments = [comments stringByAppendingString:[NSString stringWithFormat:@
|
||||
"<div class=\"NB-feed-story-comments\">"
|
||||
"<div class=\"NB-story-comments-shares-teaser-wrapper\">"
|
||||
"<div class=\"NB-story-comments-shares-teaser\">"
|
||||
|
||||
"<div class=\"NB-right\">Shared by %@</div>"
|
||||
|
||||
"<div class=\"NB-story-share-profiles NB-story-share-profiles-public\">"
|
||||
"%@"
|
||||
"</div>"
|
||||
|
||||
"%@"
|
||||
|
||||
"</div></div>",
|
||||
[[appDelegate.activeStory objectForKey:@"share_count"] intValue] == 1
|
||||
? [NSString stringWithFormat:@"1 person"] :
|
||||
[NSString stringWithFormat:@"%@ people", [appDelegate.activeStory objectForKey:@"share_count"]],
|
||||
[self getAvatars:NO],
|
||||
[self getAvatars:YES]
|
||||
]];
|
||||
} else {
|
||||
comments = [comments stringByAppendingString:[NSString stringWithFormat:@
|
||||
"<div class=\"NB-feed-story-comments\">"
|
||||
"<div class=\"NB-story-comments-shares-teaser-wrapper\">"
|
||||
"<div class=\"NB-story-comments-shares-teaser\">"
|
||||
|
||||
"<div class=\"NB-story-share-label\">Shared by: </div>"
|
||||
"%@%@"
|
||||
|
||||
|
||||
"</div></div>",
|
||||
[self getAvatars:NO],
|
||||
[self getAvatars:YES]
|
||||
]];
|
||||
}
|
||||
comments = [comments stringByAppendingString:[NSString stringWithFormat:@
|
||||
"<div class=\"NB-story-shares\">"
|
||||
"<div class=\"NB-story-comments-shares-teaser-wrapper\">"
|
||||
"<div class=\"NB-story-comments-shares-teaser\">"
|
||||
|
||||
"<div class=\"NB-right\">Shared by %@</div>"
|
||||
|
||||
"<div class=\"NB-story-share-profiles NB-story-share-profiles-public\">"
|
||||
"%@"
|
||||
"</div>"
|
||||
|
||||
"%@"
|
||||
|
||||
"</div></div>",
|
||||
[[appDelegate.activeStory objectForKey:@"share_count"] intValue] == 1
|
||||
? [NSString stringWithFormat:@"1 person"] :
|
||||
[NSString stringWithFormat:@"%@ people", [appDelegate.activeStory objectForKey:@"share_count"]],
|
||||
[self getAvatars:NO],
|
||||
[self getAvatars:YES]
|
||||
]];
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -495,7 +495,6 @@ a.NB-show-profile {
|
|||
top: 2px;
|
||||
}
|
||||
|
||||
.NB-button:hover div,
|
||||
.NB-button.selected div {
|
||||
background: #2379bf;
|
||||
background: -webkit-gradient(
|
||||
|
@ -505,8 +504,6 @@ a.NB-show-profile {
|
|||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
.NB-button.NB-share-button:hover div,
|
||||
.NB-button.NB-share-button.selected div{
|
||||
box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
@ -528,8 +525,7 @@ a.NB-show-profile {
|
|||
text-shadow: none;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.NB-button:hover a,
|
||||
story
|
||||
.NB-button.selected a {
|
||||
color: rgba(255,255,255,1);
|
||||
text-shadow: none;
|
||||
|
|
Loading…
Add table
Reference in a new issue