pre:not(.MessageContent) {
  overflow: initial;
  max-height: initial;
}

.MessageContent pre {
  border: none;
  border-left: 1px solid white;
  padding-left: 1rem;
  height: fit-content; /* Natural height */
  font-family: monospace; /* Ensure monospace font */
  display: flex;
  flex-grow: 1;
  overflow: visible;
}

.MuiMarkdown > div {
  width: 100%;
}

.Message-streaming .MuiMarkdown ul,
.Message-streaming .MuiMarkdown h1,
.Message-streaming .MuiMarkdown p,
.Message-assistant .MuiMarkdown ul,
.Message-assistant .MuiMarkdown h1,
.Message-assistant .MuiMarkdown p {
  color: white;
}