From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/base/app-icon-picker/index.tsx | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/app/components/base/app-icon-picker/index.tsx b/app/components/base/app-icon-picker/index.tsx
index 8304de1..277e2fa 100644
--- a/app/components/base/app-icon-picker/index.tsx
+++ b/app/components/base/app-icon-picker/index.tsx
@@ -15,7 +15,6 @@
import type { AppIconType, ImageFile } from '@/types/app'
import cn from '@/utils/classnames'
import { DISABLE_UPLOAD_IMAGE_AS_ICON } from '@/config'
-import { noop } from 'lodash-es'
export type AppIconEmojiSelection = {
type: 'emoji'
@@ -108,19 +107,19 @@
}
return <Modal
- onClose={noop}
+ onClose={() => { }}
isShow
closable={false}
wrapperClassName={className}
className={cn(s.container, '!w-[362px] !p-0')}
>
- {!DISABLE_UPLOAD_IMAGE_AS_ICON && <div className="w-full p-2 pb-0">
- <div className='flex items-center justify-center gap-2 rounded-xl bg-background-body p-1'>
+ {!DISABLE_UPLOAD_IMAGE_AS_ICON && <div className="p-2 pb-0 w-full">
+ <div className='p-1 flex items-center justify-center gap-2 bg-background-body rounded-xl'>
{tabs.map(tab => (
<button
key={tab.key}
className={`
- flex h-8 flex-1 shrink-0 items-center justify-center rounded-xl p-2 text-sm font-medium
+ p-2 flex-1 flex justify-center items-center h-8 rounded-xl text-sm shrink-0 font-medium
${activeTab === tab.key && 'bg-components-main-nav-nav-button-bg-active shadow-md'}
`}
onClick={() => setActiveTab(tab.key as AppIconType)}
@@ -135,7 +134,7 @@
<ImageInput className={activeTab === 'image' ? 'block' : 'hidden'} onImageInput={handleImageInput} />
<Divider className='m-0' />
- <div className='flex w-full items-center justify-center gap-2 p-3'>
+ <div className='w-full flex items-center justify-center p-3 gap-2'>
<Button className='w-full' onClick={() => onClose?.()}>
{t('app.iconPicker.cancel')}
</Button>
--
Gitblit v1.8.0