Page MenuHomePhabricator

Flow: Flow's text fields are not size restricted
Closed, ResolvedPublic

Description

Screenshot2

In both comments and the header text, images are not restricted to conform to the sizing requirements of the page - see screenshots. Obviously this is potentially veeeeery disruptive.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=57962

Attached:

Screenshot2.png (1×1 px, 1 MB)

Details

Reference
bz56268

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:14 AM
bzimport set Reference to bz56268.
bzimport added a subscriber: Unknown Object (MLST).

The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/370, but people from the community are welcome to contribute here and in Gerrit.

Would it work for this to add a CSS rule:

.flow-post-content * { max-width: 100% !important; max-height: 600px !important; overflow: hidden; }

shahyar+wmfbugzilla wrote:

Andrew, without height: auto, img (with height attr) will not scale proportionally. This would be the CSS rule you're looking for:

.flow-post-content * {

max-width: 100%;
height: auto;
word-wrap: break-word;

}

Though, I don't see this as a serious problem in the post content, since it seems to use overflow: scroll, preventing it from busting out. However, the topic title is currently susceptible to this issue.

Fix for 57962 fixed this in the short-term (though it also introduced some new weirdness...)