Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1013 B
Raw Blame
import { threadConnectorStyle } from './utils/thread-rail-geometry';

export function ThreadReplyRailDecorations() {
  return (
    <>
      {/* Branch elbow: continues the root message's rail segment and stops
          short of the first reply's avatar by the shared rail clearance. */}
      <div
        class="pointer-events-none absolute top-0 -z-1 channel-rail-left channel-rail-bottom border-thread-rail rounded-bl-[14px]"
        style={{
          left: threadConnectorStyle.left,
          width: threadConnectorStyle.width,
          height:
            'calc(var(--thread-padding-y) + var(--regular-message-padding-t) + var(--user-icon-width) / 2)',
        }}
      />
      {/* Blocks the stub of the first reply's inner rail that pokes up above
          its avatar. */}
      <div class="pointer-events-none absolute bg-surface left-[calc(var(--left-of-connector)+var(--thread-shift))] top-(--regular-message-padding-t) min-h-(--message-padding-x) min-w-4 -translate-x-1/2 z-0" />
    </>
  );
}