fix: avatars & sidebars
This commit is contained in:
@@ -550,10 +550,10 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
|||||||
const renderHelpSubItem = React.useCallback((item: HelpItem) => {
|
const renderHelpSubItem = React.useCallback((item: HelpItem) => {
|
||||||
const content = (
|
const content = (
|
||||||
<>
|
<>
|
||||||
<item.icon className="mt-1.5 size-3 shrink-0 !text-muted-foreground/90" />
|
<item.icon className="mt-0 size-2 shrink-0 !text-muted-foreground/90" />
|
||||||
<p className="text-xs font-light mt-1.5 text-muted-foreground/90 flex-1">{item.title}</p>
|
<p className="text-xs font-light mt-0 text-muted-foreground/90 flex-1">{item.title}</p>
|
||||||
{item.external && (
|
{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" />
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -44,9 +44,7 @@ export const workspacesApi = {
|
|||||||
uploadAvatar: (workspaceId: string, file: File) => {
|
uploadAvatar: (workspaceId: string, file: File) => {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file", file);
|
formData.append("file", file);
|
||||||
return api.post<Workspace>(`${BASE_PATH}/${workspaceId}/avatar`, formData, {
|
return api.post<Workspace>(`${BASE_PATH}/${workspaceId}/avatar`, formData);
|
||||||
headers: { "Content-Type": "multipart/form-data" },
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user