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.

834 B
Raw Blame
import { isTouchDevice } from '@core/mobile/isTouchDevice';
import type { JSX } from 'solid-js';

/**
 * On desktop the composer is the pane's last row, where the corner prompt
 * region sits, so persistent prompts wait while it is shown. Touch devices
 * float it above the dock, which the phone prompt already clears.
 */
export function ChannelInputContainer(props: {
  ref?: (el: HTMLDivElement) => void;
  children: JSX.Element;
}) {
  return (
    <div
      class="pb-2.5 touch:pb-0 w-full flex justify-center **:data-input-editor-shell:max-h-[calc(60*var(--dvh,1dvh))] mobile:**:data-input-editor-shell:max-h-[calc(32*var(--dvh,1dvh))] touch:px-(--mobile-chrome-gutter) touch:pointer-events-auto"
      data-holds-prompts={isTouchDevice() ? undefined : ''}
      ref={props.ref}
    >
      {props.children}
    </div>
  );
}