Skip to content

Commit

Permalink
style: EmojiPicker component top padding (#11452)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzuodong authored Dec 7, 2024
1 parent d9d5d35 commit cc8feaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions web/app/components/base/app-icon-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ const AppIconPicker: FC<AppIconPickerProps> = ({
</div>
</div>}

<Divider className='m-0' />

<EmojiPickerInner className={activeTab === 'emoji' ? 'block' : 'hidden'} onSelect={handleSelectEmoji} />
<EmojiPickerInner className={cn(activeTab === 'emoji' ? 'block' : 'hidden', 'pt-2')} onSelect={handleSelectEmoji} />
<Uploader className={activeTab === 'image' ? 'block' : 'hidden'} onImageCropped={handleImageCropped} onUpload={handleUpload}/>

<Divider className='m-0' />
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/base/emoji-picker/Inner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const EmojiPickerInner: FC<IEmojiPickerInnerProps> = ({
}, [onSelect, selectedEmoji, selectedBackground])

return <div className={cn(className)}>
<div className='flex flex-col items-center w-full px-3'>
<div className='flex flex-col items-center w-full px-3 pb-2'>
<div className="relative w-full">
<div className="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
<MagnifyingGlassIcon className="w-5 h-5 text-gray-400" aria-hidden="true" />
Expand Down

0 comments on commit cc8feaa

Please sign in to comment.