diff --git a/apps/remix/app/components/general/document/document-attachments-popover.tsx b/apps/remix/app/components/general/document/document-attachments-popover.tsx index b65ea3ea0..c8abede90 100644 --- a/apps/remix/app/components/general/document/document-attachments-popover.tsx +++ b/apps/remix/app/components/general/document/document-attachments-popover.tsx @@ -21,11 +21,6 @@ export type DocumentAttachmentsPopoverProps = { envelopeId: string; buttonClassName?: string; buttonSize?: 'sm' | 'default'; - - /** - * Visually hide the button label below the `sm` breakpoint while keeping it - * available to screen readers. - */ collapseLabelOnMobile?: boolean; }; diff --git a/apps/remix/app/components/general/document/embedded-editor-attachment-popover.tsx b/apps/remix/app/components/general/document/embedded-editor-attachment-popover.tsx index db1dd97a3..e91680cf0 100644 --- a/apps/remix/app/components/general/document/embedded-editor-attachment-popover.tsx +++ b/apps/remix/app/components/general/document/embedded-editor-attachment-popover.tsx @@ -19,11 +19,6 @@ import { z } from 'zod'; export type EmbeddedEditorAttachmentPopoverProps = { buttonClassName?: string; buttonSize?: 'sm' | 'default'; - - /** - * Visually hide the button label below the `sm` breakpoint while keeping it - * available to screen readers. - */ collapseLabelOnMobile?: boolean; }; diff --git a/apps/remix/app/components/general/envelope-editor/envelope-editor-fields-drag-drop.tsx b/apps/remix/app/components/general/envelope-editor/envelope-editor-fields-drag-drop.tsx index ab062422c..7cfde3c78 100644 --- a/apps/remix/app/components/general/envelope-editor/envelope-editor-fields-drag-drop.tsx +++ b/apps/remix/app/components/general/envelope-editor/envelope-editor-fields-drag-drop.tsx @@ -89,11 +89,6 @@ export const fieldButtonList = [ type EnvelopeEditorFieldDragDropProps = { selectedRecipientId: number | null; selectedEnvelopeItemId: string | null; - - /** - * Called when the user picks a field type from the palette, before the field - * is placed on the document. - */ onFieldSelect?: (fieldType: FieldType) => void; }; diff --git a/apps/remix/app/components/general/envelope-editor/envelope-editor-fields-page.tsx b/apps/remix/app/components/general/envelope-editor/envelope-editor-fields-page.tsx index 6d9be91aa..11d5f3e85 100644 --- a/apps/remix/app/components/general/envelope-editor/envelope-editor-fields-page.tsx +++ b/apps/remix/app/components/general/envelope-editor/envelope-editor-fields-page.tsx @@ -89,8 +89,6 @@ export const EnvelopeEditorFieldsPage = () => { const [isAiEnableDialogOpen, setIsAiEnableDialogOpen] = useState(false); const { revalidate } = useRevalidator(); - // Whether the fields panel overlay is open. Only relevant below the `md` - // breakpoint, where the panel is hidden behind a floating trigger button. const [isMobileFieldsPanelOpen, setIsMobileFieldsPanelOpen] = useState(false); const envelopeItemPermissions = useMemo( @@ -191,8 +189,6 @@ export const EnvelopeEditorFieldsPage = () => { }, []); const onDetectClick = () => { - // Close the panel overlay on small viewports so the document stays - // visible while the AI dialogs are open. setIsMobileFieldsPanelOpen(false); if (!team.preferences.aiFeaturesEnabled) { @@ -336,24 +332,19 @@ export const EnvelopeEditorFieldsPage = () => { )} {/* - * Below `md` the panel is a slide-in overlay, from `md` upwards it is a - * static sidebar. - * - * This is deliberately one always-mounted element toggled with CSS rather - * than a Sheet/Drawer: the field palette registers window-level mouse - * listeners that must survive the panel closing mid click-to-place, and - * unmounting would also double-mount the field settings forms and AI - * dialogs. `invisible` (with the transition covering visibility) keeps the - * closed overlay out of the tab order and accessibility tree. + * Always mounted and toggled with CSS rather than a Sheet/Drawer: the field + * palette registers window-level mouse listeners that must survive the panel + * closing mid click-to-place, and unmounting would also double-mount the field + * settings forms and AI dialogs. `invisible` keeps the closed overlay out of + * the tab order and accessibility tree. */}
- {/* Panel header with close button, visible below the `md` breakpoint. */}

Fields diff --git a/apps/remix/app/components/general/envelope-editor/envelope-editor-header.tsx b/apps/remix/app/components/general/envelope-editor/envelope-editor-header.tsx index 7f678713c..488479daf 100644 --- a/apps/remix/app/components/general/envelope-editor/envelope-editor-header.tsx +++ b/apps/remix/app/components/general/envelope-editor/envelope-editor-header.tsx @@ -71,7 +71,6 @@ export default function EnvelopeEditorHeader() {