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.

fix(email): Email compose and reply styling issues (#629)

dev-rb0e0b3dfe7fe9
diff --git a/js/app/packages/block-channel/component/FormatRibbon.tsx b/js/app/packages/block-channel/component/FormatRibbon.tsx
index e41a3ebf45..0f1b765d3e 100644
--- a/js/app/packages/block-channel/component/FormatRibbon.tsx
+++ b/js/app/packages/block-channel/component/FormatRibbon.tsx
@@ -13,6 +13,7 @@ import type { TextFormatType } from 'lexical';
import { ActionButton } from './ActionButton';
export type FormatRibbonProps = {
+ class?: string;
state: SelectionData;
inlineFormat: (format: TextFormatType) => void;
nodeFormat: (transform: NodeTransformType) => void;
@@ -20,7 +21,12 @@ export type FormatRibbonProps = {
export function FormatRibbon(props: FormatRibbonProps) {
return (
- <div class="flex flex-row w-full gap-2 items-center p-2 -ml-3">
+ <div
+ class="flex flex-row w-full gap-2 items-center p-2"
+ classList={{
+ [props.class!]: !!props.class,
+ }}
+ >
<ActionButton
tooltip="Bold"
shortcut="meta+b"
diff --git a/js/app/packages/block-email/component/BaseInput.tsx b/js/app/packages/block-email/component/BaseInput.tsx
index aa0a7805aa..ab3dda17a7 100644
--- a/js/app/packages/block-email/component/BaseInput.tsx
+++ b/js/app/packages/block-email/component/BaseInput.tsx
@@ -872,16 +872,16 @@ export function BaseInput(props: {
<Spinner class="w-5 h-5 animate-spin cursor-disabled" />
}
>
- <div class="flex flex-row items-center gap-0.5">
- <span>Send + </span>
- <CheckIcon class="size-[1lh]" />
+ <div class="flex justify-center items-center gap-1">
+ <span>Send & done</span>
+ <CheckIcon class="size-4" />
</div>
</Show>
</TextButton>
<DropdownMenu>
<DropdownMenu.Trigger>
- <div class="w-8 min-h-8 flex justify-center items-center h-full border-r border-t border-b border-edge">
- <CaretDown class="size-4 text-edge" />
+ <div class="w-8 min-h-8 flex justify-center items-center h-full border-r border-t border-b border-ink hover:bg-hover">
+ <CaretDown class="size-4 text-ink" />
</div>
</DropdownMenu.Trigger>
<DropdownMenuContent>
diff --git a/js/app/packages/block-email/component/ComposeEmailInput.tsx b/js/app/packages/block-email/component/ComposeEmailInput.tsx
index cb59b052b2..770bed0c24 100644
--- a/js/app/packages/block-email/component/ComposeEmailInput.tsx
+++ b/js/app/packages/block-email/component/ComposeEmailInput.tsx
@@ -155,9 +155,10 @@ export function ComposeEmailInput(props: ComposeEmailInputProps) {
}}
class="relative flex flex-col flex-1 items-center justify-between min-h-0"
>
- <div class="w-full h-full flex flex-col overflow-hidden min-h-0">
+ <div class="w-full h-full flex flex-col min-h-0">
<Show when={showFormatRibbon()}>
<FormatRibbon
+ class="-ml-3"
state={structuredClone(defaultSelectionData)}
inlineFormat={(format: TextFormatType) => {
editor()?.dispatchCommand(FORMAT_TEXT_COMMAND, format);