mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): navbar needs 4 more px added to body padding-top
This commit is contained in:
@@ -89,7 +89,7 @@ const NavBar = observer(
|
||||
updateBodyPaddingTop = () => {
|
||||
const paddingTop = this.activityStatus.idle
|
||||
? 0
|
||||
: this.elementSize.height + 4;
|
||||
: this.elementSize.height + 8;
|
||||
document.body.style.paddingTop = `${paddingTop}px`;
|
||||
};
|
||||
|
||||
|
||||
@@ -116,14 +116,14 @@ describe("<NavBar />", () => {
|
||||
window
|
||||
.getComputedStyle(document.body, null)
|
||||
.getPropertyValue("padding-top")
|
||||
).toBe("14px");
|
||||
).toBe("18px");
|
||||
|
||||
tree.instance().onResize(0, 36);
|
||||
expect(
|
||||
window
|
||||
.getComputedStyle(document.body, null)
|
||||
.getPropertyValue("padding-top")
|
||||
).toBe("40px");
|
||||
).toBe("44px");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user