FIX: Topic timeline placement on iPad
This commit is contained in:
parent
bee000bcec
commit
1ee633cea4
|
@ -3,7 +3,14 @@ import Docking from "discourse/mixins/docking";
|
|||
import { observes } from "ember-addons/ember-computed-decorators";
|
||||
import optionalService from "discourse/lib/optional-service";
|
||||
|
||||
const headerPadding = () => parseInt($("#main-outlet").css("padding-top")) + 3;
|
||||
const headerPadding = () => {
|
||||
let topPadding = parseInt($("#main-outlet").css("padding-top")) + 3;
|
||||
const iPadNavHeight = $(".footer-nav-ipad .footer-nav").height();
|
||||
if (iPadNavHeight) {
|
||||
topPadding += iPadNavHeight;
|
||||
}
|
||||
return topPadding;
|
||||
};
|
||||
|
||||
export default MountWidget.extend(Docking, {
|
||||
adminTools: optionalService(),
|
||||
|
|
Loading…
Reference in New Issue