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(sidebar): make hk hints look nicer (#2002)

Seamus78abcf1177fc
diff --git a/js/app/packages/app/component/app-sidebar/sidebar.tsx b/js/app/packages/app/component/app-sidebar/sidebar.tsx
index bc8f0b9750..c90826ed39 100644
--- a/js/app/packages/app/component/app-sidebar/sidebar.tsx
+++ b/js/app/packages/app/component/app-sidebar/sidebar.tsx
@@ -319,7 +319,7 @@ export const AppSidebar = (props: AppSidebarProps) => {
<span class="whitespace-nowrap group-data-[slim=true]/sidebar:invisible">
Create
</span>
- <div class="text-[0.625rem] text-ink-extra-muted/50 rounded-sm ml-auto border border-edge-muted px-1.5 py-0.25 -my-1 group-data-[slim=true]/sidebar:invisible">
+ <div class="text-[0.625rem] text-ink-extra-muted/50 rounded-sm ml-auto border border-ink/5 px-1.5 py-0.25 -my-1 group-data-[slim=true]/sidebar:invisible">
<Hotkey token={TOKENS.global.createCommand} class="flex gap-1" />
</div>
</Button>
@@ -341,7 +341,7 @@ export const AppSidebar = (props: AppSidebarProps) => {
<span class="whitespace-nowrap group-data-[slim=true]/sidebar:invisible">
New Split
</span>
- <div class="text-[0.625rem] text-ink-extra-muted/50 rounded-sm ml-auto border border-edge-muted px-1.5 py-0.25 -my-1 group-data-[slim=true]/sidebar:invisible">
+ <div class="text-[0.625rem] text-ink-extra-muted/50 rounded-sm ml-auto border border-ink/5 px-1.5 py-0.25 -my-1 group-data-[slim=true]/sidebar:invisible">
<Hotkey token={TOKENS.global.createNewSplit} class="flex gap-1" />
</div>
</Button>
@@ -368,7 +368,7 @@ export const AppSidebar = (props: AppSidebarProps) => {
<span class="whitespace-nowrap group-data-[slim=true]/sidebar:invisible">
Command
</span>
- <div class="text-[0.625rem] text-ink-extra-muted/50 rounded-sm ml-auto border border-edge-muted px-1.5 py-0.25 -my-1 group-data-[slim=true]/sidebar:invisible">
+ <div class="text-[0.625rem] text-ink-extra-muted/50 rounded-sm ml-auto border border-ink/5 px-1.5 py-0.25 -my-1 group-data-[slim=true]/sidebar:invisible">
<Hotkey token={TOKENS.global.commandMenu} class="flex gap-1" />
</div>
</Button>
@@ -395,7 +395,7 @@ export const AppSidebar = (props: AppSidebarProps) => {
<span class="whitespace-nowrap group-data-[slim=true]/sidebar:invisible">
Settings
</span>
- <div class="text-[0.625rem] text-ink-extra-muted/50 rounded-sm ml-auto border border-edge-muted px-1.5 py-0.25 -my-1 group-data-[slim=true]/sidebar:invisible">
+ <div class="text-[0.625rem] text-ink-extra-muted/50 rounded-sm ml-auto border border-ink/5 px-1.5 py-0.25 -my-1 group-data-[slim=true]/sidebar:invisible">
<Hotkey token={TOKENS.global.toggleSettings} class="flex gap-1" />
</div>
</Button>
@@ -470,8 +470,8 @@ const SidebarLink = (props: SidebarLinkProps) => {
draggable={false}
variant="ghost"
class={cn(
- 'flex items-center justify-start text-sm gap-2 cursor-default w-full rounded-xs py-1',
- isActive() && 'bg-ink/7 not-disabled:hover:bg-ink/15 text-ink'
+ 'flex items-center justify-start text-sm gap-2 cursor-default w-full rounded-xs py-1 text-ink-extra-muted',
+ isActive() && 'bg-ink/5 not-disabled:hover:bg-ink/10 text-ink'
)}
tooltipPlacement="right"
tooltip={
@@ -508,17 +508,26 @@ const SidebarLink = (props: SidebarLinkProps) => {
{props.label}
</span>
- <div class="text-[0.625rem] text-ink-extra-muted/50 rounded-sm ml-auto border border-edge-muted px-1.5 py-0.25 -my-1 group-data-[slim=true]/sidebar:invisible">
- <div class="flex gap-1">
- <Show when={!props.standaloneHotkey}>
- <Hotkey shortcut={GO_TO_LEADER_KEY} lowercase />
- <Hotkey shortcut={props.hotkey} lowercase />
- </Show>
- <Show when={props.standaloneHotkey}>
- <Hotkey shortcut={props.hotkey} lowercase />
- </Show>
+ <Show when={isHovering()}>
+ <div class="group-data-[slim=true]/sidebar:invisible ml-auto">
+ <div class="flex gap-1 items-center text-ink-extra-muted font-normal text-[0.625rem]">
+ <Show when={!props.standaloneHotkey}>
+ <div class="text-[0.625rem] text-ink-extra-muted rounded-sm ml-auto border border-ink/5 px-1.5 py-0.5 -my-1">
+ <Hotkey shortcut={GO_TO_LEADER_KEY} />
+ </div>
+ then
+ <div class="text-[0.625rem] text-ink-extra-muted rounded-sm ml-auto border border-ink/5 px-1.5 py-0.5 -my-1">
+ <Hotkey shortcut={props.hotkey} />
+ </div>
+ </Show>
+ <Show when={props.standaloneHotkey}>
+ <div class="text-[0.625rem] text-ink-extra-muted rounded-sm ml-auto border border-ink/5 px-1.5 py-0.5 -my-1">
+ <Hotkey shortcut={props.hotkey} />
+ </div>
+ </Show>
+ </div>
</div>
- </div>
+ </Show>
</Button>
</ContextMenu.Trigger>