Skip to content

Commit

Permalink
Reference correct css variable
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Jul 24, 2020
1 parent 96aae3d commit 7667761
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/src/common/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export default class Application {
/**
* Determine the current screen mode, based on our media queries.
*
* @returns {String} - one of "mobile", "tablet", "desktop" or "desktop-hd"
* @returns {String} - one of "phone", "tablet", "desktop" or "desktop-hd"
*/
screen() {
const styles = getComputedStyle(document.documentElement);
Expand Down
4 changes: 2 additions & 2 deletions js/src/forum/components/Composer.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default class Composer extends Component {
*/
updateBodyPadding() {
const visible =
this.state.position !== ComposerState.Position.HIDDEN && this.state.position !== ComposerState.Position.MINIMIZED && app.screen() !== 'mobile';
this.state.position !== ComposerState.Position.HIDDEN && this.state.position !== ComposerState.Position.MINIMIZED && app.screen() !== 'phone';

const paddingBottom = visible ? this.state.computedHeight() - parseInt($('#app').css('padding-bottom'), 10) : 0;

Expand Down Expand Up @@ -269,7 +269,7 @@ export default class Composer extends Component {
show() {
this.animateHeightChange().then(() => this.focus());

if (app.screen() === 'mobile') {
if (app.screen() === 'phone') {
this.$().css('top', $(window).scrollTop());
this.showBackdrop();
}
Expand Down
2 changes: 1 addition & 1 deletion js/src/forum/states/ComposerState.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ComposerState {
* @public
*/
isFullScreen() {
return this.position === ComposerState.Position.FULLSCREEN || app.screen() === 'mobile';
return this.position === ComposerState.Position.FULLSCREEN || app.screen() === 'phone';
}

/**
Expand Down

0 comments on commit 7667761

Please sign in to comment.