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(ui): kill roundpanel (#2866)

Fake-User06c29461dc70
diff --git a/js/app/packages/app/component/HotkeyDebugger.tsx b/js/app/packages/app/component/HotkeyDebugger.tsx
index 081d3c3d23..f9e6606a44 100644
--- a/js/app/packages/app/component/HotkeyDebugger.tsx
+++ b/js/app/packages/app/component/HotkeyDebugger.tsx
@@ -113,7 +113,7 @@ export default function HotkeyDebugger() {
<div class="flex-1 overflow-auto">
<table class="w-full border-collapse">
<thead class="sticky top-0 z-10 bg-panel">
- <tr class="text-left text-[10px] uppercase tracking-wide text-ink-muted">
+ <tr class="text-left text-xxs uppercase tracking-wide text-ink-muted">
<th class="border-b border-edge px-3 py-2 font-normal">Lvl</th>
<th class="border-b border-edge px-3 py-2 font-normal">Scope</th>
<th class="border-b border-edge px-3 py-2 font-normal">
diff --git a/js/app/packages/app/component/TeamInviteAcceptance.tsx b/js/app/packages/app/component/TeamInviteAcceptance.tsx
index cad190c009..946d3c7a0c 100644
--- a/js/app/packages/app/component/TeamInviteAcceptance.tsx
+++ b/js/app/packages/app/component/TeamInviteAcceptance.tsx
@@ -8,7 +8,7 @@ import {
} from '@queries/team/invitations';
import { useTeamQuery } from '@queries/team/teams';
import { LoadingBlock } from '@core/component/LoadingBlock';
-import { RoundPanel } from '@core/component/RoundPanel';
+import { Panel } from '@ui';
import { PcNoiseGrid } from '@core/component/PcNoiseGrid';
import { Button } from '@ui/components/Button';
import { ShowFeatureFlag } from '@app/lib/analytics/posthog';
@@ -111,8 +111,8 @@ function TeamInviteAcceptanceContent() {
/>
</div>
- <div class="w-full max-w-[420px] invite-card">
- <RoundPanel>
+ <div class="w-full max-w-105 invite-card">
+ <Panel>
<div class="flex flex-col gap-6 py-6 px-6">
<div class="flex justify-center">
<LogoIcon class="size-10 text-accent" />
@@ -149,7 +149,7 @@ function TeamInviteAcceptanceContent() {
</Switch>
</div>
</div>
- </RoundPanel>
+ </Panel>
</div>
</div>
);
diff --git a/js/app/packages/core/component/RoundPanel.tsx b/js/app/packages/core/component/RoundPanel.tsx
deleted file mode 100644
index 6a78abb373..0000000000
--- a/js/app/packages/core/component/RoundPanel.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { cn } from '@ui/utils/classname';
-import type { JSX } from 'solid-js';
-
-export type RoundPanelProps = {
- highlightColor?: string;
- children?: JSX.Element;
- active?: boolean;
- class?: string;
-};
-
-export function RoundPanel(props: RoundPanelProps) {
- return (
- <div
- style={{
- 'background-image': `linear-gradient(${props.active ? `${props.highlightColor || 'var(--color-accent)'}, var(--color-edge-muted) 80%` : 'var(--color-edge-muted)'})`,
- }}
- class="p-px h-full w-full box-border rounded-[6px] overflow-clip"
- >
- <div
- class={cn(
- 'h-full w-full box-border bg-panel rounded-[5px] overflow-clip',
- props.class
- )}
- >
- {props.children}
- </div>
- </div>
- );
-}