mirror of
https://github.com/flarum/core.git
synced 2025-07-22 17:21:27 +02:00
Don't pad the body when the composer is positioned absolutely (on mobile)
This commit is contained in:
@@ -237,7 +237,8 @@ class Composer extends Component {
|
||||
*/
|
||||
updateBodyPadding() {
|
||||
const visible = this.position !== Composer.PositionEnum.HIDDEN &&
|
||||
this.position !== Composer.PositionEnum.MINIMIZED;
|
||||
this.position !== Composer.PositionEnum.MINIMIZED &&
|
||||
this.$().css('position') !== 'absolute';
|
||||
|
||||
const paddingBottom = visible
|
||||
? this.computedHeight() - parseInt($('#app').css('padding-bottom'), 10)
|
||||
|
Reference in New Issue
Block a user