Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
/*
* Editor shell and floating chrome.
*
* This file owns ProseMirror root behavior, placeholder text, NodeView layout,
* and editor-only floating controls. Rich prose typography lives in prose.css.
*/
.rich-text-editor.ProseMirror {
color: var(--foreground);
caret-color: var(--foreground);
}
.rich-text-editor.ProseMirror:focus {
outline: none;
}
/* Placeholder */
.rich-text-editor .is-editor-empty:first-child::before {
content: attr(data-placeholder);
float: left;
color: var(--muted-foreground);
pointer-events: none;
height: 0;
}
/* Readonly mode overrides */
.rich-text-editor.readonly.ProseMirror {
caret-color: transparent;
cursor: default;
}
/* Mention NodeView inline layout fix */
.rich-text-editor [data-node-view-wrapper] {
display: inline;
vertical-align: middle;
}
/* Block-level NodeViews (fileCard) need to override the inline default above */
.rich-text-editor .file-card-node {
display: block !important;
}
/* The table NodeView (TableView) is a block, and Tiptap marks ProseMirror's
<tbody> inside it as a wrapper too; it keeps its table display. */
.rich-text-editor [data-node-view-wrapper].table-node {
display: block;
}
.rich-text-editor tbody[data-node-view-wrapper] {
display: table-row-group;
}
/* Bubble menu — floating toolbar pill */
[data-mc="editor-toolbar"] {
transform-origin: bottom center;
transition:
opacity 130ms cubic-bezier(0.23, 1, 0.32, 1),
transform 130ms cubic-bezier(0.23, 1, 0.32, 1),
visibility 0ms linear;
}
[data-mc="editor-toolbar"][data-state="closed"] {
opacity: 0;
transform: translateY(4px) scale(0.97);
pointer-events: none;
transition:
opacity 90ms cubic-bezier(0.4, 0, 1, 1),
transform 90ms cubic-bezier(0.4, 0, 1, 1),
visibility 0ms linear 90ms;
}
[data-mc="editor-toolbar"][data-state="open"] {
opacity: 1;
transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
[data-mc="editor-toolbar"],
[data-mc="editor-toolbar"][data-state="closed"] {
transition: none;
transform: none;
}
}
.bubble-menu {
display: flex;
align-items: center;
gap: 1px;
padding: 0.25rem;
background: var(--popover);
border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
border-radius: var(--radius);
box-shadow:
0 4px 12px color-mix(in srgb, black 12%, transparent),
0 0 0 1px color-mix(in srgb, black 4%, transparent);
}
/* Link edit mode — inline URL input */
.bubble-menu-link-edit {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem;
background: var(--popover);
border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
border-radius: var(--radius);
box-shadow:
0 4px 12px color-mix(in srgb, black 12%, transparent),
0 0 0 1px color-mix(in srgb, black 4%, transparent);
min-width: 300px;
}
/* Link hover card — shows URL + actions on link hover */
.link-hover-card {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.25rem 0.25rem 0.5rem;
background: var(--popover);
border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
border-radius: var(--radius);
box-shadow:
0 4px 12px color-mix(in srgb, black 12%, transparent),
0 0 0 1px color-mix(in srgb, black 4%, transparent);
max-width: min(360px, calc(100vw - 2rem));
white-space: nowrap;
}
/* Collaborators' carets (CollaborationCaret). The colour comes inline from
each collaborator's awareness state. */
.rich-text-editor .collaboration-carets__caret {
position: relative;
margin-left: -1px;
margin-right: -1px;
border-left: 1px solid;
border-right: 1px solid;
word-break: normal;
pointer-events: none;
}
.rich-text-editor .collaboration-carets__label {
position: absolute;
top: -1.4em;
left: -1px;
border-radius: 3px 3px 3px 0;
padding: 0.1rem 0.3rem;
color: white;
font-size: 0.6875rem;
font-weight: 600;
line-height: normal;
white-space: nowrap;
user-select: none;
}