Skip to content
Permalink
Browse files

fix(BrowserView): broken expand width on github.com

  • Loading branch information...
h13i32maru committed Sep 14, 2019
1 parent 87bf370 commit b3d0f9ffe119f214e23b5aa6a85548beba85d9ae
Showing with 13 additions and 7 deletions.
  1. +13 −7 src/Electron/Component/WebViewComponentInjection/style.css
@@ -1,25 +1,31 @@
@media (min-width: 1020px) {
[role="main"] .container, /* for GHE */
main .container {
[role="main"] .container, /* for old GHE */
main .container, /* for header */
main .container-lg {
width: calc(100vw - 80px);
max-width: 1400px;
}

.container .discussion-timeline {
.container .discussion-timeline, /* for old GHE */
.container-lg .discussion-timeline {
width: calc(100vw - 300px);
max-width: 1160px;
}

.container .comment-holder {
.container .comment-holder, /* for old GHE */
.container-lg .comment-holder {
max-width: initial;
}

.container .timeline-new-comment {
.container .timeline-new-comment, /* for old GHE */
.container-lg .timeline-new-comment {
max-width: initial;
}

body.full-width [role="main"] .container,
body.full-width .container .discussion-timeline {
body.full-width [role="main"] .container, /* for old GHE */
body.full-width .container .discussion-timeline, /* for old GHE */
body.full-width [role="main"] .container-lg,
body.full-width .container-lg .discussion-timeline {
max-width: none;
}
}

0 comments on commit b3d0f9f

Please sign in to comment.
You can’t perform that action at this time.