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.

style: update rounding on md menu and toast (#3478)

Seamus3526aad1ad05
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx
index c0f2aedd85..c25ef165b3 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/ActionsMenu.tsx
@@ -85,7 +85,7 @@ function ActionsMenuItem(props: {
}}
on:mouseover={() => props.setIndex(props.index)}
class={cn('group flex items-center p-1.5 mx-1.5 rounded-md', {
- 'bg-hover': props.selected,
+ 'bg-ink/5': props.selected,
})}
>
<div class="flex flex-row gap-2 items-center w-full">
@@ -322,7 +322,7 @@ export function ActionMenu(props: {
>
<Surface
depth={2}
- class="py-1.5 shadow-lg shadow-drop-shadow rounded-lg"
+ class="py-1.5 shadow-lg shadow-drop-shadow rounded-xl"
>
<div
class="overflow-y-auto scrollbar-hidden"
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx
index fc88aaaa97..66b1ccc4b3 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/EmojiMenu.tsx
@@ -51,7 +51,7 @@ function EmojiItem(props: {
<div
on:mouseover={() => props.setIndex(props.index)}
class={cn('group flex items-center px-1.5 py-1 rounded-md', {
- 'bg-hover': props.selected,
+ 'bg-ink/5': props.selected,
})}
on:mouseup={(e) => {
e.preventDefault();
@@ -257,7 +257,7 @@ export function EmojiMenu(props: EmojiMenuProps) {
>
<Surface
depth={2}
- class="py-1.5 shadow-lg shadow-drop-shadow rounded-lg"
+ class="py-1.5 shadow-lg shadow-drop-shadow rounded-xl"
>
<div class="flex flex-col px-1.5 w-full">
<Show
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx
index 66e97c399c..0c4b575155 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx
@@ -510,7 +510,7 @@ function MentionsMenuInner(props: MentionsMenuProps) {
>
<Surface
depth={2}
- class="pt-2 pb-1.5 shadow-lg shadow-drop-shadow rounded-lg"
+ class="pt-2 pb-1.5 shadow-lg shadow-drop-shadow rounded-xl"
>
<Show
when={controller.viewAllMode()}
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/components/MentionsMenuItem.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/components/MentionsMenuItem.tsx
index 10f2f64a27..da81945f56 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/components/MentionsMenuItem.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu/components/MentionsMenuItem.tsx
@@ -83,7 +83,7 @@ export function MentionsMenuItem(props: {
}}
on:mousemove={() => props.setIndex(props.index)}
class={cn('group flex items-center p-1.5 mx-1.5 rounded-md', {
- 'bg-hover': props.selected,
+ 'bg-ink/5': props.selected,
})}
>
<div class="mr-2 flex items-center">{icon()}</div>
diff --git a/js/app/packages/core/component/Toast/Toast.tsx b/js/app/packages/core/component/Toast/Toast.tsx
index c3baf5ae84..416f960045 100644
--- a/js/app/packages/core/component/Toast/Toast.tsx
+++ b/js/app/packages/core/component/Toast/Toast.tsx
@@ -226,6 +226,7 @@ function ActionButtons(props: { actions: ToastAction[]; mobile?: boolean }) {
onClick={action.onClick}
variant={props.mobile ? 'ghost' : 'base'}
class={cn('px-2 py-1', props.mobile && 'text-panel text-xs')}
+ depth={3}
>
<Show when={action.icon}>
{(icon) => (
@@ -253,17 +254,14 @@ function ToastBodyWrapper(props: {
fallback={
<Surface
highlightColor={props.accentColor}
- active
- class="relative w-[90vw] sm:w-md p-2 sm:p-3"
+ class="relative w-[90vw] sm:w-md p-2 sm:p-3 rounded-xl shadow-lg shadow-drop-shadow"
depth={2}
>
{props.children}
</Surface>
}
>
- <div class="relative w-full p-2 text-xs rounded bg-ink text-surface shadow-md">
- {props.children}
- </div>
+ {props.children}
</Show>
);
}
@@ -352,7 +350,7 @@ function ToastContent(props: {
<Toast
toastId={props.toastId}
class={cn(
- `relative overflow-visible pointer-events-auto shadow-md rounded
+ `relative overflow-visible pointer-events-auto
data-opened:animate-slide-in transition-[transform,opacity] duration-100 ease-in data-closed:opacity-0 data-[swipe=move]:translate-x-(--kb-toast-swipe-move-x)
data-[swipe=cancel]:translate-x-0 data-[swipe=cancel]:ease-out data-[swipe=cancel]:duration-200 data-[swipe=end]:animate-swipe-out`,
props.mobile && 'w-full'
diff --git a/js/app/packages/ui/components/Dropdown.tsx b/js/app/packages/ui/components/Dropdown.tsx
index 3affa939c7..66e285ba00 100644
--- a/js/app/packages/ui/components/Dropdown.tsx
+++ b/js/app/packages/ui/components/Dropdown.tsx
@@ -40,7 +40,7 @@ export type DropdownItemProps = ComponentProps<typeof KobalteDropdownMenu.Item>;
export type DropdownSubProps = ComponentProps<typeof KobalteDropdownMenu.Sub>;
type PortalMount = ComponentProps<typeof KobalteDropdownMenu.Portal>['mount'];
-const ROW_CLASS = 'rounded-lg w-full flex items-center gap-2.5 px-2 h-8 text-left text-xs cursor-default outline-none hover:bg-ink/5 data-highlighted:bg-ink/5 data-disabled:opacity-50 data-disabled:cursor-not-allowed';
+const ROW_CLASS = 'rounded-lg w-full flex items-center gap-2.5 px-2 h-8 text-left text-xs cursor-default outline-none hover:bg-ink/5 data-highlighted:bg-ink/5 data-disabled:opacity-50 data-disabled:cursor-not-allowed';
function DropdownContent(props: DropdownContentProps) {
const [local, rest] = splitProps(props, ['depth', 'class', 'mount', 'children']);