Skip to content

Commit

Permalink
fix(qa): simpler grid layout fix for overflow
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Mazouz <[email protected]>
  • Loading branch information
SychO9 committed Sep 8, 2022
1 parent 32961d4 commit 8aec252
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 0 additions & 4 deletions framework/core/less/common/root.less
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,4 @@
@media @tablet { --flarum-screen: tablet; }
@media @desktop { --flarum-screen: desktop; }
@media @desktop-hd { --flarum-screen: desktop-hd; }

@media @tablet { --container-width: @screen-tablet; }
@media @desktop { --container-width: @screen-desktop; }
@media @desktop-hd { --container-width: @screen-desktop-hd; }
}
11 changes: 10 additions & 1 deletion framework/core/less/common/scaffolding.less
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,17 @@ p {
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
width: var(--container-width);
.clearfix();

@media @tablet {
width: @screen-tablet;
}
@media @desktop {
width: @screen-desktop;
}
@media @desktop-hd {
width: @screen-desktop-hd;
}
}

.containerNarrow {
Expand Down
7 changes: 4 additions & 3 deletions framework/core/less/forum/DiscussionPage.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
@media @tablet-up {
.DiscussionPage-discussion {
> .container {
--container-gap: 75px;
display: grid;
grid-gap: var(--container-gap);
grid-template-columns: calc(~"var(--container-width) - 150px - var(--container-gap)") 150px;
grid-gap: 75px;
grid-template-columns: 1fr 150px;
grid-template-areas: 'stream nav';

&::before, &::after {
Expand Down Expand Up @@ -65,6 +64,8 @@

.DiscussionPage-stream {
grid-area: stream;
max-width: 100%;
min-width: 0;
}
}

Expand Down

0 comments on commit 8aec252

Please sign in to comment.