Closed (works as designed)
Project:
Social media
Version:
7.x-1.0-beta8
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2012 at 07:25 UTC
Updated:
3 Aug 2017 at 07:37 UTC
Jump to comment: Most recent
Comments
Comment #1
21tech commentedGot it figured out.
Here is the css I finally got to work:
.fb-like-box, .fb_iframe_widget, .fb-like-box span, .fb-like-box span iframe, .fb_iframe_widget span, .fb_iframe_widget span iframe
{
width:100% !important;
max-width:100% !important;
}
.twtr-doc
{
width:100% !important;
max-width:100% !important;
}
I probably could have used less for the fb, but I don't have time to narrow down exactly which classes are required.
Comment #2
21tech commentedComment #3
knalstaaf commentedUsing !important-flags is not really advised in a default stylesheet of a module imo. I'm having trouble working around it as well.
Edit: I was referring to the Twitter Profile Widget, but it's adjustable in the configuration page of it (admin/config/media/socialmedia): Default widget appearance. There you can adjust a (fixed) width as well (you have to apparently), but as mentionned above, you still make this responsive with the !important-flags .
This is confusing at first, yet very accessible for unexperienced users. Which is ok.
Comment #4
a.ross commentedThere really should be an option to make the width responsive. This is something a very large number of websites need, since you have to include sites that have an old style fluid layout or mobile templates. That's a significant amount surely.
Comment #5
slamorte commentedThis is an awesome workaround.
Would be great as a feature.
Comment #6
web226 commentedThanks! worked well for me too
Comment #7
technologywon commentedMaking these responsive should be done in the theme.
Comment #8
a.ross commentedI don't think any other block module has an option to configure its width. That is inherently a styling/layout thing that a simple block module should not concern itself with.
So IMO it would be better to just get rid of the field entirely.