BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Styling – Mobile View newsfeed margins too large
Tagged: layout, mobile view
- This topic has 11 replies, 4 contibutors, and was last updated 6 years ago by ocity.
Question
April 17, 2016 at 8:05 pm #68688@bstrehlIs there an easy way to reduce the very wide margins of the newsfeed stream in mobile view like on Facebook where the full width of the display is used for the newsfeed. The Boss mobile newsfeed has very wide margins left and right and the text block of an activity item covers only like half of the iPhone display. On smaller displays like an iPhone 5 this looks completely awful. The same applies to photos. I want to considerably reduce or even get rid of the margins completely on mobile view. Thanks.
Answers
April 17, 2016 at 11:53 pm #68694@anveHI @bstrehl,
Please attach a screenshot to explain it as i am unable to understand it completely.
Regards
AnveApril 18, 2016 at 1:27 am #68705@bstrehlHere’s the screenshot. It’s not from an actual iPhone but that’s how it looks like on my older iPhone. I am talking about the margins on the left of the avatar picture and on the right side of the text. Reducing these margins to almost zero would be a more pleasant newsfeed experience on older smaller mobile screens. In the Facebook app, for example, the photos and text also extend almost to the width of the screen for a better experience.
April 18, 2016 at 3:49 am #68724@anveHI @bstrehl,
Sorry but i can not replicate the issue of yours since it is looking fine at our end . PM me the site details , will check there and provide you the css.
Regards
AnveApril 18, 2016 at 8:39 pm #68855@bstrehlThere is not an “issue” with the mobile view on my site. It just doesn’t look very good on smaller smartphone screens. Just let me know how to reduce the margins left and right of the newsfeed content. See the picture in the post above and compare to Facebook mobile view. It’s pretty obvious what I mean.
April 18, 2016 at 11:43 pm #68858@anveHi @bstrehl,
Please try applying the following css in child theme’s custom css option.
@media screen and (max-width:480px){ body.activity #buddypress .activity { padding: 0 10px !important; } }
Regards
AnveApril 19, 2016 at 1:21 am #68878@bstrehlHi Anve,
I copied the css in the custom css section of the child theme on dashboard but I couldn’t notice any difference for smaller screen sizes. I am not quite sure what this may have changed but I couldn’t notice anything…
Best regards
April 19, 2016 at 4:54 am #68896@anveHi @bstrehl,
Please try applying the given css using ‘Simple custom css’ plugin. As i have applied the css and it works for me . Please refer to following screenshot.
Regards
AnveApril 19, 2016 at 8:50 pm #68988@bstrehlok, thanks for your help! I could make it work…
April 20, 2016 at 2:28 am #69000@anveAugust 31, 2016 at 8:35 am #73094@rickrocheAnve, Thank you very much – That did not work for me – but you led me in the right direction. I’m new to css – did some reading and discovered that this is what worked for me on both an iPhone 5 and 6+
body.activity #buddypress .activity {
margin-right: -38px; !important;
margin-left: -38px; !important;
}Maybe that will help someone. Now trying to figure out how to decrease the spacing between the privacy setting and the ‘what’s new, username’
-RickNovember 14, 2018 at 6:54 pm #158725@ocityI tried the this code and still no luck for me can anyone help?
- You must be logged in to reply to this question.