fix(admin): adjust import users dialog styles (#11436)
close AF-2456 AF-2454 AF-2441 AF-2422
This commit is contained in:
@@ -7,6 +7,7 @@ import { FeatureType } from '@affine/graphql';
|
|||||||
import {
|
import {
|
||||||
AccountIcon,
|
AccountIcon,
|
||||||
EmailIcon,
|
EmailIcon,
|
||||||
|
EmailWarningIcon,
|
||||||
LockIcon,
|
LockIcon,
|
||||||
UnlockIcon,
|
UnlockIcon,
|
||||||
} from '@blocksuite/icons/rc';
|
} from '@blocksuite/icons/rc';
|
||||||
@@ -223,7 +224,7 @@ export const useColumns = ({
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
IconFalse={
|
IconFalse={
|
||||||
<EmailIcon
|
<EmailWarningIcon
|
||||||
fontSize={16}
|
fontSize={16}
|
||||||
color={cssVarV2('toast/iconState/error')}
|
color={cssVarV2('toast/iconState/error')}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ export function ImportUsersDialog({
|
|||||||
<Dialog open={open} onOpenChange={onOpenChange}>
|
<Dialog open={open} onOpenChange={onOpenChange}>
|
||||||
<DialogContent
|
<DialogContent
|
||||||
className={
|
className={
|
||||||
isPreviewMode ? 'sm:max-w-[600px] flex-col gap-3' : 'sm:max-w-[425px]'
|
isPreviewMode ? 'sm:max-w-[600px] flex-col' : 'sm:max-w-[425px]'
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
@@ -214,7 +214,7 @@ export function ImportUsersDialog({
|
|||||||
: 'Import'}
|
: 'Import'}
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<DialogDescription className="text-[15px]">
|
<DialogDescription className="text-[15px] mt-3">
|
||||||
{isFormatError ? (
|
{isFormatError ? (
|
||||||
'You need to import the accounts by importing a CSV file in the correct format. Please download the CSV template.'
|
'You need to import the accounts by importing a CSV file in the correct format. Please download the CSV template.'
|
||||||
) : isPreviewMode ? (
|
) : isPreviewMode ? (
|
||||||
@@ -242,7 +242,7 @@ export function ImportUsersDialog({
|
|||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
|
|
||||||
<DialogFooter
|
<DialogFooter
|
||||||
className={`flex-col sm:flex-row sm:justify-between items-center ${isPreviewMode ? 'sm:justify-end' : 'sm:justify-between'}`}
|
className={`flex-col mt-6 sm:flex-row sm:justify-between items-center ${isPreviewMode ? 'sm:justify-end' : 'sm:justify-between'}`}
|
||||||
>
|
>
|
||||||
{isFormatError ? (
|
{isFormatError ? (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -39,8 +39,11 @@ export const ServerVersion = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span>ServerVersion</span>
|
<span>ServerVersion</span>
|
||||||
<span className="overflow-hidden text-ellipsis" title={version}>
|
<span
|
||||||
v{version}
|
className="overflow-hidden text-ellipsis whitespace-nowrap"
|
||||||
|
title={version}
|
||||||
|
>
|
||||||
|
{`v${version}`}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ export const SettingsItem = ({ isCollapsed }: { isCollapsed: boolean }) => {
|
|||||||
</AccordionTrigger>
|
</AccordionTrigger>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
|
|
||||||
<AccordionContent className="h-full overflow-hidden w-full">
|
<AccordionContent className="h-full overflow-hidden w-full pb-0">
|
||||||
<ScrollAreaPrimitive.Root
|
<ScrollAreaPrimitive.Root
|
||||||
className={cn('relative overflow-hidden w-full h-full')}
|
className={cn('relative overflow-hidden w-full h-full')}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user