fix click to reveal text initial render
This commit is contained in:
parent
2298f1455f
commit
e8e22ad7d4
|
@ -113,7 +113,7 @@ export default memo(function Text ({ nofollow, imgproxyUrls, children, tab, ...o
|
|||
}, [imgproxyUrls, outerProps, tab])
|
||||
|
||||
return (
|
||||
<div className={`${styles.text} ${overflowing && !show ? styles.textContained : ''}`} ref={containerRef}>
|
||||
<div className={`${styles.text} ${show ? styles.textUncontained : overflowing ? styles.textContained : ''}`} ref={containerRef}>
|
||||
<ReactMarkdown
|
||||
components={{
|
||||
h1: Heading,
|
||||
|
|
|
@ -5,10 +5,11 @@
|
|||
line-height: 140%;
|
||||
overflow-y: hidden;
|
||||
position: relative;
|
||||
max-height: 200vh;
|
||||
}
|
||||
|
||||
.textContained {
|
||||
max-height: 200vh;
|
||||
.textUncontained {
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
.textContained::before {
|
||||
|
|
Loading…
Reference in New Issue