Skip to content

Commit

Permalink
Fix upload cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
juniusfree committed Mar 3, 2024
1 parent 3df8515 commit 485de05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ const CommandBanner = ({ baseBanner, activeOrg, customBanner }) => {
<BannerUploadTextButtonContainer>
<BannerUploadText>Optimal size: 640 x 140px</BannerUploadText>
<BannerUploadButtonContainer>
<ButtonIconWrapper onClick={() => imageInputField.current.click()}>
<ReplaceIcon />
</ButtonIconWrapper>
<ButtonInputContainer>
<input type="file" accept="image/*" ref={imageInputField} onChange={handleReplaceBannerImage} />
<ButtonIconWrapper>
<ReplaceIcon />
</ButtonIconWrapper>
</ButtonInputContainer>
<ButtonIconWrapper onClick={handleDeleteBannerImage}>
<DeleteIcon />
Expand Down Expand Up @@ -271,11 +271,11 @@ const CommandBanner = ({ baseBanner, activeOrg, customBanner }) => {
<TopImageTextButtonContainer>
<TopImageText>400 x 400px</TopImageText>
<TopImageButtonContainer>
<ButtonIconWrapper onClick={() => imageInputField.current.click()}>
<ReplaceIcon />
</ButtonIconWrapper>
<ButtonInputContainer>
<input type="file" accept="image/*" ref={imageInputField} onChange={handleReplaceTopImage} />
<ButtonIconWrapper>
<ReplaceIcon />
</ButtonIconWrapper>
</ButtonInputContainer>
<ButtonIconWrapper onClick={handleDeleteTopImage}>
<DeleteIcon />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,9 @@ export const BannerUploadButtonContainer = styled(Grid)`

export const ButtonInputContainer = styled(Grid)`
&& {
position: relative;
&:hover {
opacity: 0.8;
}
position: absolute;
& > input {
z-index: 1;
position: absolute;
top: 0;
left: 0;
Expand Down

0 comments on commit 485de05

Please sign in to comment.