Skip to content

Commit

Permalink
fix: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleBill committed Jan 26, 2024
1 parent 0771620 commit ab34a57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useNftRedPacketHistory } from './hooks/useNftRedPacketHistory.js'
import { NftRedPacketHistoryItem } from './NftRedPacketHistoryItem.js'
import { useRedPacketTrans } from '../locales/index.js'

const useStyles = makeStyles<void, 'atBottom'>()((theme, _, refs) => {
const useStyles = makeStyles()((theme) => {
const smallQuery = `@media (max-width: ${theme.breakpoints.values.sm}px)`
return {
root: {
Expand All @@ -37,39 +37,6 @@ const useStyles = makeStyles<void, 'atBottom'>()((theme, _, refs) => {
height: 474,
margin: '0 auto',
},
popper: {
overflow: 'visible',
padding: 6,
},
popperContent: {
position: 'relative',
overflow: 'visible',
backgroundColor: theme.palette.mode === 'light' ? 'rgba(15, 20, 25, 1)' : '#fff',
borderRadius: 8,
padding: 10,
},
arrow: {
position: 'absolute',
bottom: 0,
right: 74,
width: 0,
height: 0,
borderLeft: '6px solid transparent',
borderRight: '6px solid transparent',
borderTop: `6px solid ${theme.palette.mode === 'light' ? 'rgba(15, 20, 25, 1)' : '#fff'}`,
transform: 'RedPacketTrans(-50%, 6px)',
[`&.${refs.atBottom}`]: {
bottom: 'auto',
top: 0,
transform: 'RedPacketTrans(-50%, -6px) rotate(180deg)',
},
},
atBottom: {},
popperText: {
cursor: 'default',
color: theme.palette.mode === 'light' ? '#fff' : 'rgba(15, 20, 25, 1)',
fontSize: 12,
},
}
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,25 +149,6 @@ const useStyles = makeStyles<{ listItemBackground?: string; listItemBackgroundIc
marginRight: 2,
},
},
popper: {
overflow: 'visible',
backgroundColor: theme.palette.maskColor.dark,
transform: 'RedPacketTrans(196px, 47px)',
borderRadius: 8,
width: 328,
padding: 10,
},
arrow: {
position: 'absolute',
top: -12,
right: 40,
width: 0,
height: 0,
borderLeft: '6px solid transparent',
borderRight: '6px solid transparent',
borderBottom: `6px solid ${theme.palette.maskColor.dark}`,
transform: 'RedPacketTransY(6px)',
},
popperText: {
cursor: 'default',
color: theme.palette.common.white,
Expand Down

0 comments on commit ab34a57

Please sign in to comment.