diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-01-20 11:52:06 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-01-20 11:52:06 +0100 |
commit | a93cb340bd1f7ce6f42943024a4a3431f5671b14 (patch) | |
tree | 9d884057b0cbb3076a90af85763909b0ca23e29e /app/javascript/flavours/glitch/features/status | |
parent | 8001a9b97bded0329f91397f2316328a8ba0d97a (diff) |
[Glitch] Fix new hashtag page's items not being full-width on mobile
Port b506ce119766bb3308f934e2d3de143b3ac6f5ad to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features/status')
-rw-r--r-- | app/javascript/flavours/glitch/features/status/components/detailed_status.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index 447247567..02f02efea 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -62,7 +62,7 @@ export default class DetailedStatus extends ImmutablePureComponent { _measureHeight (heightJustChanged) { if (this.props.measureHeight && this.node) { - scheduleIdleTask(() => this.node && this.setState({ height: this.node.scrollHeight })); + scheduleIdleTask(() => this.node && this.setState({ height: Math.ceil(this.node.scrollHeight) + 1 })); if (this.props.onHeightChange && heightJustChanged) { this.props.onHeightChange(); |