chat: prevent input overflow offscreen
Fixes urbit/landscape#632
@@ -168,6 +168,7 @@ blockquote {
}
.chat .react-codemirror2 {
width: 100%;
+ height: 100%;
}
.chat .CodeMirror {
@@ -186,6 +187,18 @@ blockquote {
font-size: 14px;
}
+.chat .CodeMirror-scroll {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ height: 100%;
+}
+
+.chat .CodeMirror-sizer {
+ min-height: 0 !important;
+ max-height: 100%;
+}
+
.chat.code .react-codemirror2 .CodeMirror * {
font-family: 'Source Code Pro';
}
