Skip to content

Commit

Permalink
styles: add height adjust for #114
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 24, 2020
1 parent 38da6bd commit 61d3e49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/presentation/practise/practise.component.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<component-markdown-render [data]="data" [showToc]="true"></component-markdown-render>
<component-markdown-render [data]="data" [showToc]="true" [virtualScroll]="true" class="virtual-scroll-render"></component-markdown-render>
17 changes: 11 additions & 6 deletions src/styles/_markdown-render.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
@import "./color";

.virtual-scroll-render {
.ledge-render {
height: calc(100% - 66px);

virtual-scroller,
ledge-render {
height: 100%;
}
}
}

.markdown-toc {
display: flex;
flex-direction: row;
Expand All @@ -11,12 +22,6 @@
height: calc(100vh - 66px);
overflow-y: scroll;


virtual-scroller,
ledge-render {
height: 100%;
}

.ledge-render {
width: calc(100% - 2em);
border: solid 1px $border-color;
Expand Down

0 comments on commit 61d3e49

Please sign in to comment.