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(sidebar): point caret down when Favorites/Mail section is expanded (#4582)

Jacob Beckerman0be317f0e543
diff --git a/js/app/packages/app/component/app-sidebar/favorites-section.tsx b/js/app/packages/app/component/app-sidebar/favorites-section.tsx
index dad4c70189..46c3eafd29 100644
--- a/js/app/packages/app/component/app-sidebar/favorites-section.tsx
+++ b/js/app/packages/app/component/app-sidebar/favorites-section.tsx
@@ -11,7 +11,7 @@ import {
import { ContextMenuContent, MenuItem } from '@core/component/ContextMenu';
import type { EntityIconSelector } from '@core/component/EntityIcon';
import { ContextMenu } from '@kobalte/core/context-menu';
-import CaretDownIcon from '@phosphor/caret-down.svg';
+import CaretRightIcon from '@phosphor/caret-right.svg';
import {
favoriteEntityKey,
useFavoritesData,
@@ -122,10 +122,10 @@ const FavoritesGroup = (props: {
onClick={() => setExpanded(!expanded())}
>
<h1>{props.label}</h1>
- <CaretDownIcon
+ <CaretRightIcon
class={cn(
'size-3 transition-transform duration-200',
- expanded() && 'rotate-180'
+ expanded() && 'rotate-90'
)}
/>
</button>
diff --git a/js/app/packages/app/component/app-sidebar/sidebar.tsx b/js/app/packages/app/component/app-sidebar/sidebar.tsx
index 72eac97b18..4e6fba1aa5 100644
--- a/js/app/packages/app/component/app-sidebar/sidebar.tsx
+++ b/js/app/packages/app/component/app-sidebar/sidebar.tsx
@@ -71,7 +71,7 @@ import { AnimatedSearchIcon } from '@icon/wide-search';
import { AnimatedStarIcon } from '@icon/wide-star';
import { AnimatedTaskIcon } from '@icon/wide-task';
import { ContextMenu } from '@kobalte/core/context-menu';
-import CaretDownIcon from '@phosphor/caret-down.svg';
+import CaretRightIcon from '@phosphor/caret-right.svg';
import CaretUpIcon from '@phosphor/caret-up.svg';
import GearIcon from '@phosphor/gear.svg';
import HomeIcon from '@phosphor/house.svg';
@@ -1274,10 +1274,10 @@ const SidebarMailLink = (props: SidebarLinkProps) => {
}}
trailingWhenActive={
canShow() ? (
- <CaretDownIcon
+ <CaretRightIcon
class={cn(
'size-3 transition-transform duration-200',
- expanded() && 'rotate-180'
+ expanded() && 'rotate-90'
)}
/>
) : undefined