Fix scrolling issue in firefox (Close #248) (#251)

This commit is contained in:
Jinseo Park
2019-06-07 13:50:57 +09:00
committed by GitHub
parent e47d3037af
commit 83e4c196a7
7 changed files with 29 additions and 14 deletions

View File

@@ -4,6 +4,7 @@
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
.search_bar_container {
height: $line-height;
@@ -37,4 +38,4 @@
border-top: 1px solid $theme-light;
overflow-y: auto;
}
}
}

View File

@@ -5,4 +5,5 @@
display: flex;
flex-direction: column;
align-items: stretch;
min-height: 0;
}

View File

@@ -19,7 +19,9 @@ class LogRenderer extends Renderer {
const { log } = this.props.data;
return (
<div className={styles.log} ref={this.elementRef} dangerouslySetInnerHTML={{ __html: log }} />
<div className={styles.log} ref={this.elementRef}>
<div className={styles.content} dangerouslySetInnerHTML={{ __html: log }} />
</div>
);
}
}

View File

@@ -3,11 +3,15 @@
.log {
flex: 1;
align-self: stretch;
padding: 24px;
display: flex;
flex-direction: column;
align-items: stretch;
overflow-y: auto;
font-family: $font-family-monospace;
white-space: pre-wrap;
line-height: 1.6;
.content {
padding: 24px;
font-family: $font-family-monospace;
white-space: pre-wrap;
line-height: 1.6;
}
}

View File

@@ -62,8 +62,10 @@ class MarkdownRenderer extends Renderer {
};
return (
<ReactMarkdown className={styles.markdown} source={markdown} renderers={{ heading, link, image }}
escapeHtml={false} />
<div className={styles.markdown}>
<ReactMarkdown className={styles.content} source={markdown} renderers={{ heading, link, image }}
escapeHtml={false} />
</div>
);
}
}

View File

@@ -1,15 +1,19 @@
@import "~/common/stylesheet/index";
.markdown {
display: flex;
flex-direction: column;
flex: 1;
align-self: stretch;
padding: 24px;
font-size: $font-size-large;
display: flex;
flex-direction: column;
align-items: stretch;
overflow-y: auto;
a {
text-decoration: underline;
.content {
padding: 24px;
font-size: $font-size-large;
a {
text-decoration: underline;
}
}
}

View File

@@ -7,6 +7,7 @@
display: flex;
align-items: center;
justify-content: center;
min-height: 0;
&:first-child {
border-top: none;