Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(community): cap dialog size, center body content, drop all-caps labels

Generb7c950eb41ea
diff --git a/src/web/src/app/community/channels/layout.tsx b/src/web/src/app/community/channels/layout.tsx
index 96414f911..24d7e5d60 100644
--- a/src/web/src/app/community/channels/layout.tsx
+++ b/src/web/src/app/community/channels/layout.tsx
@@ -376,7 +376,7 @@ export default function ServerLayout({ children }: { children: ReactNode }) {
const serverSettingsDialog = (
<Dialog open={serverSettingsOpen} onOpenChange={(o) => { if (!o) closeSettings() }}>
- <DialogContent className="flex h-[calc(100vh-4rem)] w-[calc(100vw-4rem)] sm:max-w-none flex-col gap-0 overflow-hidden rounded-xl p-0" showCloseButton={false}>
+ <DialogContent className="flex h-[calc(100vh-4rem)] max-h-180 w-[calc(100vw-4rem)] sm:max-w-4xl flex-col gap-0 overflow-hidden rounded-xl p-0" showCloseButton={false}>
<ServerSettings
section={settingsSection}
setSection={setSettingsSection}
diff --git a/src/web/src/app/community/preview/page.tsx b/src/web/src/app/community/preview/page.tsx
index 367b4523f..50f411e67 100644
--- a/src/web/src/app/community/preview/page.tsx
+++ b/src/web/src/app/community/preview/page.tsx
@@ -532,7 +532,7 @@ export default function CommunityPreview() {
<>
<NewThreadDialog channel={activeChannel} open={creatingThread} onClose={() => setCreatingThread(false)} onCreate={(name, firstMessage) => createThread(name, { firstMessage })} />
<Dialog open={editingProfile} onOpenChange={(o) => { if (!o) setEditingProfile(false) }}>
- <DialogContent className="flex h-[calc(100vh-4rem)] w-[calc(100vw-4rem)] sm:max-w-none flex-col gap-0 overflow-hidden rounded-xl p-0" showCloseButton={false}>
+ <DialogContent className="flex h-[calc(100vh-4rem)] max-h-180 w-[calc(100vw-4rem)] sm:max-w-4xl flex-col gap-0 overflow-hidden rounded-xl p-0" showCloseButton={false}>
<UserSettings
onClose={() => setEditingProfile(false)}
userId={null}
@@ -555,7 +555,7 @@ export default function CommunityPreview() {
</DialogContent>
</Dialog>
<Dialog open={view === "settings"} onOpenChange={(o) => { if (!o) goServer() }}>
- <DialogContent className="flex h-[calc(100vh-4rem)] w-[calc(100vw-4rem)] sm:max-w-none flex-col gap-0 overflow-hidden rounded-xl p-0" showCloseButton={false}>
+ <DialogContent className="flex h-[calc(100vh-4rem)] max-h-180 w-[calc(100vw-4rem)] sm:max-w-4xl flex-col gap-0 overflow-hidden rounded-xl p-0" showCloseButton={false}>
<ServerSettings section={settingsSection} setSection={setSettingsSection} onClose={goServer} serverName={serverName} serverDescription="Your Personal Company — AI agents that collaborate, always on." members={memberList} invites={invites} auditLog={AUDIT_LOG} {...settingsActions} {...profileProps} />
</DialogContent>
</Dialog>
diff --git a/src/web/src/components/community/bots/bot-list.tsx b/src/web/src/components/community/bots/bot-list.tsx
index 03349f778..c9316b277 100644
--- a/src/web/src/components/community/bots/bot-list.tsx
+++ b/src/web/src/components/community/bots/bot-list.tsx
@@ -192,7 +192,7 @@ export function BotList({ onBack }: { onBack?: () => void } = {}) {
>
<div className="flex items-center gap-2 px-1">
<Monitor className="size-3.5 text-muted-foreground" />
- <span className="text-xs font-semibold uppercase tracking-wide text-muted-foreground">
+ <span className="text-xs font-semibold text-muted-foreground">
{machineName(machineId)}
</span>
<span
diff --git a/src/web/src/components/community/channel-header.tsx b/src/web/src/components/community/channel-header.tsx
index 6df1c96e7..5e9106a4e 100644
--- a/src/web/src/components/community/channel-header.tsx
+++ b/src/web/src/components/community/channel-header.tsx
@@ -222,7 +222,7 @@ function BreadcrumbRename({ label, onRename }: { label: string; onRename: (name:
</DialogHeader>
<div className="px-4 pb-5 pt-4">
<label className="block">
- <div className="mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">Name</div>
+ <div className="mb-2 text-xs font-semibold text-muted-foreground">Name</div>
<Input
value={draft}
onChange={(e) => setDraft(e.target.value)}
diff --git a/src/web/src/components/community/create-channel-dialog.tsx b/src/web/src/components/community/create-channel-dialog.tsx
index a87af8a87..574fa15de 100644
--- a/src/web/src/components/community/create-channel-dialog.tsx
+++ b/src/web/src/components/community/create-channel-dialog.tsx
@@ -46,7 +46,7 @@ export function CreateChannelDialog({ category, initial, onClose, onCreate }: {
<div className="space-y-4 px-4 pb-5">
{!editing && (
<div>
- <div className="mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">Channel Type</div>
+ <div className="mb-2 text-xs font-semibold text-muted-foreground">Channel Type</div>
<div className="space-y-2">
{options.map((o) => (
<button
@@ -71,7 +71,7 @@ export function CreateChannelDialog({ category, initial, onClose, onCreate }: {
</div>
)}
<label className="block">
- <div className="mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">Channel Name</div>
+ <div className="mb-2 text-xs font-semibold text-muted-foreground">Channel Name</div>
<div className="relative">
{type === "forum"
? <ListChevronsUpDown className="absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" />
diff --git a/src/web/src/components/community/edit-profile-dialog.tsx b/src/web/src/components/community/edit-profile-dialog.tsx
index 601ffbc69..2e82228e3 100644
--- a/src/web/src/components/community/edit-profile-dialog.tsx
+++ b/src/web/src/components/community/edit-profile-dialog.tsx
@@ -28,7 +28,7 @@ function AppearanceSettings() {
const active = mounted ? theme ?? "system" : undefined
return (
- <div className="max-w-xl space-y-4">
+ <div className="mx-auto max-w-xl space-y-4">
<Field label="Theme">
<div className="grid grid-cols-3 gap-2">
{THEME_OPTIONS.map(({ value, label, icon: Icon }) => {
@@ -88,7 +88,7 @@ function AdvancedSettings({ userId }: { userId: string | null }) {
}
}}
/>
- <div className="max-w-xl space-y-6">
+ <div className="mx-auto max-w-xl space-y-6">
<div>
<div className="text-sm font-medium">Clear local cache</div>
<p className="mt-1 text-xs text-muted-foreground">
@@ -167,7 +167,7 @@ export function UserSettings({ onClose, userId, userName, aboutMe, avatar, statu
className="min-h-0 flex-1 flex-row gap-0"
>
<nav className="flex w-60 shrink-0 flex-col gap-2 overflow-y-auto thin-scrollbar border-r border-border p-3" style={{ background: "var(--d-rail)" }}>
- <div className="px-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">User Settings</div>
+ <div className="px-2 text-xs font-semibold text-muted-foreground">User Settings</div>
<TabsList variant="line" className="h-auto w-full flex-col gap-1">
<TabsTrigger value="profile" className="h-8 w-full justify-start gap-2">
<User className="size-4" /> My Profile
@@ -196,7 +196,7 @@ export function UserSettings({ onClose, userId, userName, aboutMe, avatar, statu
</header>
<div className="flex-1 overflow-y-auto thin-scrollbar p-4">
<TabsContent value="profile">
- <div className="max-w-xl space-y-4">
+ <div className="mx-auto max-w-xl space-y-4">
<div className="flex items-center gap-4">
<Avatar label={avatar} size={80} />
<div>
diff --git a/src/web/src/components/community/field.tsx b/src/web/src/components/community/field.tsx
index e267589a5..b4293cca3 100644
--- a/src/web/src/components/community/field.tsx
+++ b/src/web/src/components/community/field.tsx
@@ -4,7 +4,7 @@ import type React from "react"
export function Field({ label, children }: { label: React.ReactNode; children: React.ReactNode }) {
return (
<label className="block">
- <div className="mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">{label}</div>
+ <div className="mb-2 text-xs font-semibold text-muted-foreground">{label}</div>
{children}
</label>
)
diff --git a/src/web/src/components/community/member-list.tsx b/src/web/src/components/community/member-list.tsx
index 7d71ef843..fc7998ec6 100644
--- a/src/web/src/components/community/member-list.tsx
+++ b/src/web/src/components/community/member-list.tsx
@@ -198,7 +198,7 @@ export function MemberList({
}}
>
{item.kind === "header" ? (
- <h3 className="mb-2 px-1 text-xs font-medium uppercase tracking-wide text-muted-foreground">
+ <h3 className="mb-2 px-1 text-xs font-medium text-muted-foreground">
{item.label} — {item.count}
</h3>
) : (
diff --git a/src/web/src/components/community/new-thread-panel.tsx b/src/web/src/components/community/new-thread-panel.tsx
index 3ded91c93..427c9c7d4 100644
--- a/src/web/src/components/community/new-thread-panel.tsx
+++ b/src/web/src/components/community/new-thread-panel.tsx
@@ -35,7 +35,7 @@ export function NewThreadDialog({ channel, open, onClose, onCreate }: {
</DialogHeader>
<div className="space-y-4 px-4 pb-5">
<label className="block">
- <div className="mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">Thread Name</div>
+ <div className="mb-2 text-xs font-semibold text-muted-foreground">Thread Name</div>
<Input
value={name}
onChange={(e) => setName(e.target.value)}
@@ -45,7 +45,7 @@ export function NewThreadDialog({ channel, open, onClose, onCreate }: {
/>
</label>
<label className="block">
- <div className="mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">First Message</div>
+ <div className="mb-2 text-xs font-semibold text-muted-foreground">First Message</div>
<div className="flex min-h-14 items-center gap-3 rounded-lg bg-secondary px-4 py-3">
<input
value={message}
diff --git a/src/web/src/components/community/server-settings.tsx b/src/web/src/components/community/server-settings.tsx
index 18ecea85b..8ea6b2215 100644
--- a/src/web/src/components/community/server-settings.tsx
+++ b/src/web/src/components/community/server-settings.tsx
@@ -88,7 +88,7 @@ export function ServerSettings({
>
{/* settings nav */}
<nav className="flex w-60 shrink-0 flex-col gap-2 overflow-y-auto thin-scrollbar border-r border-border p-4" style={{ background: "var(--d-rail)" }}>
- <div className="px-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground">{serverName}</div>
+ <div className="px-2 text-xs font-semibold text-muted-foreground">{serverName}</div>
<TabsList variant="line" className="h-auto w-full flex-col gap-1">
{nav.map((n) => (
<TabsTrigger key={n.id} value={n.id} className="h-9 w-full justify-start gap-2">
@@ -137,7 +137,7 @@ function SettingsOverview({ serverName, serverDescription, serverIcon, onUploadI
onUpdateServer?.(name, desc)
}
return (
- <div className="max-w-xl space-y-4">
+ <div className="mx-auto max-w-xl space-y-4">
<div className="flex items-center gap-4">
{serverIcon ? (
<img src={serverIcon} alt="Server icon" className="size-20 rounded-2xl object-cover" />
@@ -219,7 +219,7 @@ function SettingsMembers({ members, loading, loadingMore, hasMore, total, onLoad
// server-wide count so we suffix "matches" for clarity.
const shownCount = total ?? members.length
return (
- <div className="flex h-full min-h-0 flex-col">
+ <div className="mx-auto flex h-full min-h-0 max-w-xl flex-col">
{onSearch && (
<div className="relative mb-3 shrink-0">
<Search className="absolute left-2 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" />
@@ -304,7 +304,7 @@ function SettingsInvites({ invites, loading, onRevokeInvite, onCopyInvite }: {
const [revokingCode, setRevokingCode] = useState<string | null>(null)
if (loading && invites.length === 0) return <SettingsInvitesSkeleton />
return (
- <div className="space-y-2">
+ <div className="mx-auto max-w-xl space-y-2">
{invites.length === 0 && (
<p className="text-sm text-muted-foreground">No active invites — use the invite icon in the sidebar header to share this server.</p>
)}
@@ -338,7 +338,7 @@ function SettingsNotifications({ level, onSetLevel }: { level: string; onSetLeve
{ value: "Nothing", label: "Muted", hint: "No notifications, no badges" },
]
return (
- <div className="max-w-md space-y-2">
+ <div className="mx-auto max-w-md space-y-2">
<div className="mb-3 text-sm text-muted-foreground">Default notifications for this server</div>
{levels.map((l) => (
<button
@@ -362,7 +362,7 @@ function SettingsNotifications({ level, onSetLevel }: { level: string; onSetLeve
function SettingsAudit({ auditLog, loading }: { auditLog: AuditEntry[]; loading?: boolean }) {
if (loading && auditLog.length === 0) return <SettingsAuditSkeleton />
return (
- <div className="space-y-2">
+ <div className="mx-auto max-w-xl space-y-2">
{auditLog.length === 0 && (
<p className="text-sm text-muted-foreground">No audit log entries yet. Admin actions will be recorded here.</p>
)}
@@ -385,7 +385,7 @@ function SettingsAudit({ auditLog, loading }: { auditLog: AuditEntry[]; loading?
// so the body doesn't shift when data lands.
function SettingsMembersSkeleton() {
return (
- <div className="space-y-2">
+ <div className="mx-auto max-w-xl space-y-2">
<Skeleton className="mb-3 h-4 w-24 rounded" />
{Array.from({ length: 5 }).map((_, i) => (
<div key={i} className="flex items-center gap-3 rounded-md border border-border bg-card px-4 py-2">
@@ -404,7 +404,7 @@ function SettingsMembersSkeleton() {
function SettingsInvitesSkeleton() {
return (
- <div className="space-y-2">
+ <div className="mx-auto max-w-xl space-y-2">
{Array.from({ length: 3 }).map((_, i) => (
<div key={i} className="flex items-center gap-3 rounded-md border border-border bg-card px-4 py-3">
<Skeleton className="size-5 shrink-0 rounded" />
@@ -422,7 +422,7 @@ function SettingsInvitesSkeleton() {
function SettingsAuditSkeleton() {
return (
- <div className="space-y-2">
+ <div className="mx-auto max-w-xl space-y-2">
{Array.from({ length: 6 }).map((_, i) => (
<div key={i} className="flex items-center gap-3 rounded-md px-2 py-2">
<Skeleton className="size-4 shrink-0 rounded" />
diff --git a/src/web/src/components/community/shell-frame.tsx b/src/web/src/components/community/shell-frame.tsx
index 807967b11..b66ba7406 100644
--- a/src/web/src/components/community/shell-frame.tsx
+++ b/src/web/src/components/community/shell-frame.tsx
@@ -499,7 +499,7 @@ export function ShellFrame({
const userSettingsDialog = (
<Dialog open={editingProfile} onOpenChange={(o) => { if (!o) setEditingProfile(false) }}>
- <DialogContent className="flex h-[calc(100vh-4rem)] w-[calc(100vw-4rem)] sm:max-w-none flex-col gap-0 overflow-hidden rounded-xl p-0" showCloseButton={false}>
+ <DialogContent className="flex h-[calc(100vh-4rem)] max-h-180 w-[calc(100vw-4rem)] sm:max-w-4xl flex-col gap-0 overflow-hidden rounded-xl p-0" showCloseButton={false}>
<UserSettings
onClose={() => setEditingProfile(false)}
userId={currentUser.id}