0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Merge pull request #5857 from kevinansfield/fix-ff-editor-widths-v2

Fix over-sized editor pane widths
This commit is contained in:
Hannah Wolfe 2015-09-25 09:08:26 +01:00
commit f91c241443
2 changed files with 11 additions and 0 deletions

View file

@ -24,6 +24,11 @@
background: #fff;
}
/* Flexbox fix. https://github.com/TryGhost/Ghost/issues/5804#issuecomment-141416812 */
.gh-main > section {
width: 1px;
}
/* Global Nav
/* ---------------------------------------------------------- */

View file

@ -206,6 +206,12 @@ casper.thenOpenAndWaitForPageLoad = function (screen, then, timeout) {
timeout = timeout || casper.failOnTimeout(casper.test, 'Unable to load ' + screen);
return casper.thenOpen(url + screens[screen].url).then(function () {
// HACK: phantomjs + flexbox = nope. Fix offending styles here.
casper.evaluate(function () {
var style = document.createElement('style');
style.innerHTML = '.gh-main > section { width: auto; }';
document.body.appendChild(style);
});
return casper.waitForScreenLoad(screen, then, timeout);
});
};