fix: avatars & sidebars

This commit is contained in:
ivannoskov
2026-01-22 17:20:40 +03:00
parent 38d30aa738
commit 63b2fd5d77
2 changed files with 4 additions and 6 deletions

View File

@@ -550,10 +550,10 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
const renderHelpSubItem = React.useCallback((item: HelpItem) => {
const content = (
<>
<item.icon className="mt-1.5 size-3 shrink-0 !text-muted-foreground/90" />
<p className="text-xs font-light mt-1.5 text-muted-foreground/90 flex-1">{item.title}</p>
<item.icon className="mt-0 size-2 shrink-0 !text-muted-foreground/90" />
<p className="text-xs font-light mt-0 text-muted-foreground/90 flex-1">{item.title}</p>
{item.external && (
<ArrowUpRight className="mt-1.5 size-3 shrink-0 !text-muted-foreground/60" />
<ArrowUpRight className="mt-0 size-10 shrink-0 !text-muted-foreground/60" />
)}
</>
);

View File

@@ -44,9 +44,7 @@ export const workspacesApi = {
uploadAvatar: (workspaceId: string, file: File) => {
const formData = new FormData();
formData.append("file", file);
return api.post<Workspace>(`${BASE_PATH}/${workspaceId}/avatar`, formData, {
headers: { "Content-Type": "multipart/form-data" },
});
return api.post<Workspace>(`${BASE_PATH}/${workspaceId}/avatar`, formData);
},
/**