Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
1.0 KB
Raw Blame
/*
 * RichContent density modifier.
 *
 * `density` is CSS-only (MUL-4922): compact and document render the SAME
 * semantic DOM through the same components map, and differ only in spacing.
 * Nothing here may change which blocks exist — only how tightly they sit.
 *
 * Compact is used by Chat, where a message bubble should not carry the
 * leading/trailing block margins a document body wants, and consecutive
 * paragraphs sit closer together.
 */

.rich-text-editor.rich-content-compact > :first-child {
  margin-top: 0;
}

.rich-text-editor.rich-content-compact > :last-child {
  margin-bottom: 0;
}

.rich-content-compact p {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.rich-content-compact ul,
.rich-content-compact ol {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

/* Code blocks and rich blocks keep a little more air than prose so a diagram
   or preview does not collide with the surrounding text. */
.rich-content-compact .code-block-wrapper {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}