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.

feat(ui): add ring (#3119)

Fake-Userd64112c6f7d4
diff --git a/js/app/packages/app/component/app-sidebar/sidebar.tsx b/js/app/packages/app/component/app-sidebar/sidebar.tsx
index 4610bef28b..1accf89088 100644
--- a/js/app/packages/app/component/app-sidebar/sidebar.tsx
+++ b/js/app/packages/app/component/app-sidebar/sidebar.tsx
@@ -413,7 +413,7 @@ const SidebarActionButton = (props: SidebarActionButtonProps) => {
<span class="whitespace-nowrap group-data-[slim=true]/sidebar:invisible">
{props.label}
</span>
- <Show when={props.hotkeyToken}>
+ <Show when={hovering() && props.hotkeyToken}>
{(token) => (
<div class="text-xxs text-ink-extra-muted/50 rounded-sm ml-auto border border-ink/5 px-1.5 py-px -my-1 group-data-[slim=true]/sidebar:invisible">
<Hotkey token={token()} class="flex gap-1" />
@@ -822,12 +822,11 @@ const SidebarLink = (props: SidebarLinkProps) => {
<Show when={props.hotkeyVisible}>
<div
class={cn(
- 'text-xs size-4 outline-1 outline-accent/50 rounded-xs bg-page text-ink flex items-center justify-center overflow-hidden',
+ 'text-xs size-4 rounded-xs flex items-center justify-center overflow-hidden bg-accent/10 border border-accent/30 text-accent',
props.sidebarState === 'slim' && 'absolute -bottom-1 -right-1',
props.sidebarState !== 'slim' && 'relative p-1 ml-auto'
)}
>
- <div class="absolute inset-0 size-full bg-accent/20" />
<Hotkey shortcut={props.hotkey} />
</div>
</Show>
diff --git a/js/app/packages/app/index.css b/js/app/packages/app/index.css
index fb7683b72b..99d1ecca9c 100644
--- a/js/app/packages/app/index.css
+++ b/js/app/packages/app/index.css
@@ -90,10 +90,11 @@
--color-dialog: var(--b0); /* dialog, e.g. dialog background */
--color-input: var(--b0); /* input, e.g. chat/channel input */
--color-button: var(--b0); /* dialog, e.g. dialog background */
+ --color-shadow: oklch(calc(var(--b0l) - 0.01 ) var(--b0c) var(--b0h) / 0.2);
--color-message: color-mix(in oklch, var(--b1) 50%, var(--b2)); /* message background */
--color-hover: var(--b2); /* hover, e.g. hover state for buttons/items */
--color-active: var(--b1); /* elements that are selected or activated */
- --color-overlay: oklch(from var(--b2) l c h / 0.5); /* overlay, e.g. modal background */
+ --color-overlay: oklch(var(--b2) / 0.5); /* overlay, e.g. modal background */
--color-edge-muted: var(--b3); /* muted edge */
--color-edge: var(--b4); /* edge (border) */
diff --git a/js/app/packages/theme/components/ThemeList.tsx b/js/app/packages/theme/components/ThemeList.tsx
index a08e4fac0d..a2dfed9d5b 100644
--- a/js/app/packages/theme/components/ThemeList.tsx
+++ b/js/app/packages/theme/components/ThemeList.tsx
@@ -38,6 +38,7 @@ export function ThemeList() {
box-sizing: border-box;
grid-auto-rows: 40px;
overflow-x: hidden;
+ font-size: 14px;
display: grid;
gap: 1px;
"
diff --git a/js/app/packages/ui/components/Layer.tsx b/js/app/packages/ui/components/Layer.tsx
index da299a8e1d..fe97aeba0f 100644
--- a/js/app/packages/ui/components/Layer.tsx
+++ b/js/app/packages/ui/components/Layer.tsx
@@ -34,9 +34,11 @@ export function Layer(props: LayerProps) {
'--color-page': 'var(--b0)',
'--color-menu': 'var(--b0)',
'--color-dialog': 'var(--b0)',
+
// TODO (seamus): --color-input could be better handled with fractional layer depth
'--color-input': `oklch(calc(var(--b0l) + ${depth() + 0.02}) var(--b0c) var(--b0h))`,
'--color-button': 'var(--b0)',
+ '--color-shadow': 'oklch(calc(var(--b0l) - 0.005 ) var(--b0c) var(--b0h) / 0.2)',
// TODO (seamus): --color-message could be better handled with fractional layer depth
'--color-message': 'color-mix(in oklch, var(--b1) 50%, var(--b2))',
'--color-active': 'var(--b1)',
diff --git a/js/app/packages/ui/components/Panel.tsx b/js/app/packages/ui/components/Panel.tsx
index 86c667464b..0c6e981a0d 100644
--- a/js/app/packages/ui/components/Panel.tsx
+++ b/js/app/packages/ui/components/Panel.tsx
@@ -30,7 +30,9 @@ export function Panel(props: PanelProps) {
...local.style,
}}
class={cn(
- 'rounded-md overflow-clip min-h-0 h-full w-full',
+ 'relative rounded-md overflow-clip min-h-0 h-full w-full',
+ "after:content-[''] after:absolute after:inset-0 after:pointer-events-none after:rounded-[inherit] after:z-10",
+ 'after:shadow-[inset_0_0_4px_var(--color-shadow)]',
local.class,
)}
{...rest}
diff --git a/js/app/packages/ui/components/Window.tsx b/js/app/packages/ui/components/Window.tsx
index 5b6113a7d7..69a9c643ec 100644
--- a/js/app/packages/ui/components/Window.tsx
+++ b/js/app/packages/ui/components/Window.tsx
@@ -65,7 +65,7 @@ Window.Body = (props: BodyProps) => (
<Show when={props.children}>
<div
class={cn(
- 'relative min-h-0 min-w-0',
+ 'relative min-h-0 min-w-0 scrollbar-hidden',
props.scroll ? 'overflow-auto' : 'overflow-hidden',
props.class,
)}