Skip to content

Commit

Permalink
fix: css noti topbar banner (#2222)
Browse files Browse the repository at this point in the history
* fix topbar banner mobile if have multi line
* support upload .PNG, .JEGP , ...
  • Loading branch information
nguyenhoaidanh authored Sep 7, 2023
1 parent 6f69b88 commit 2c0ace7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/Announcement/Popups/TopBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ const TextContent = styled.div<{ isOverflow: boolean; animationDuration: number
};
white-space: nowrap;
position: absolute;
display: flex;
gap: 4px;
`}
> * {
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/social.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const useUploadImageToCloud = () => {
try {
const file = fileObject as File
const ext = file.name?.split('.')?.pop() ?? ''
if (ext && !IMAGE_ALLOW_EXTENSIONS.includes(ext)) throw new Error('File is not support')
if (ext && !IMAGE_ALLOW_EXTENSIONS.includes(ext.toLowerCase())) throw new Error('File is not support')
const fileName = `${uuid() + Date.now()}.${ext || 'png'}`
const res = await uploadImage({
fileName,
Expand Down

0 comments on commit 2c0ace7

Please sign in to comment.