logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 9f69aa3cb18799600d1ea4a7a38e160d9be9a5ab
parent: f5c3d20e9cbd2e57d48c6080691eb493be10c7fc
Author: unarist <m.unarist@gmail.com>
Date:   Thu, 25 May 2017 09:23:54 +0900

Prevent contents of the status placeholder from overflowing (#3287)

Since long lines may overflow and cause the status-list horizontally scrollable,
I added `overflow: hidden` to placeholder contents to prevent it.

Diffstat:

Mapp/javascript/mastodon/components/status.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js @@ -95,7 +95,7 @@ class Status extends ImmutablePureComponent { if (isIntersecting === false && isHidden) { return ( - <div ref={this.handleRef} data-id={status.get('id')} style={{ height: `${this.height}px`, opacity: 0 }}> + <div ref={this.handleRef} data-id={status.get('id')} style={{ height: `${this.height}px`, opacity: 0, overflow: 'hidden' }}> {status.getIn(['account', 'display_name']) || status.getIn(['account', 'username'])} {status.get('content')} </div>