File size: 1,282 Bytes
811916b
 
 
 
 
 
 
 
 
 
 
c86c048
811916b
0282567
 
 
 
5adbf57
0282567
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5adbf57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
811916b
 
 
 
 
 
 
5adbf57
 
 
 
811916b
5adbf57
 
 
 
 
c86c048
 
 
 
 
 
 
 
 
 
 
 
 
811916b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
body {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  grid-template: 1fr auto / 1fr;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  .milkdown {
    display: grid;
    grid-template: 1fr / 1fr;
    padding: 0;

    .ProseMirror {
      padding: 0.6em 1em;
      font-family: inherit;
      white-space: pre-wrap;
      outline: none;
      margin: 0;

      pre {
        background: inherit;
        color: inherit;

        code {
          color: inherit;
        }
      }
    }
  }
}

.chat-log {
  position: relative;

  .milkdown {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    .ProseMirror {
      overflow: auto;
    }
  }
}

.chat-input {
  border-top: solid 1px black;
  display: grid;
  grid-template: 1fr auto / 1fr;

  .milkdown {
    display: grid;
    grid-template: 1fr / 1fr;
    background: white;

    .ProseMirror {
      max-height: 20vh;
      overflow: auto;
    }
  }

  /* Crepe-specific styling for input */
  .editor {
    max-height: 20vh;
    overflow: auto;
    background: white;
  }

  .editor .ProseMirror {
    padding: 0.6em 1em;
    max-height: 20vh;
    overflow: auto;
  }
}