Skip to content

Commit

Permalink
Merge branch 'hotfix/1.10.13' into released
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed May 8, 2020
2 parents 95aa5b1 + 452764d commit 920c925
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
Binary file modified public/wallet/payload-dai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/wallet/payload-eth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/wallet/payload-okb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions src/plugins/Wallet/UI/Dashboard/Components/RedPacket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ const useStyles = makeStyles(theme =>
justifyContent: 'center',
},
packet: {
right: '-0.6em',
width: '6em',
height: '6em',
top: 40,
right: -10,
width: 90,
height: 90,
position: 'absolute',
backgroundAttachment: 'local',
backgroundPosition: 'center',
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/Wallet/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export const PluginRedPacketTheme = createMuiTheme({
'&::after': {
position: 'absolute',
backgroundImage: `url(${getUrl('wallet/present-default.png')})`,
width: '4em',
height: '5.7em',
top: 250,
right: '-0.6em',
width: 60,
height: 60,
right: -8,
opacity: 0.8,
backgroundAttachment: 'local',
backgroundPosition: 'center',
Expand Down
4 changes: 2 additions & 2 deletions src/social-network-provider/facebook.com/UI/collectPosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function getSteganographyContent(node: DOMProxy) {
const parent = node.current.parentElement
if (!parent) return ''
const imgNodes = parent.querySelectorAll<HTMLElement>(
isMobileFacebook ? 'div>div>div>a>div>div>i.img' : '.uiScaledImageContainer img',
isMobileFacebook ? 'div>div>div>a>div>div>i.img' : '.userContentWrapper a[data-ploi]',
)
if (!imgNodes.length) return ''
const imgUrls = isMobileFacebook
Expand All @@ -124,7 +124,7 @@ async function getSteganographyContent(node: DOMProxy) {
.split(',')
.filter(Boolean)
: Array.from(imgNodes)
.map(node => node.getAttribute('src') || '')
.map(node => node.getAttribute('data-ploi') || '')
.filter(Boolean)
if (!imgUrls.length) return ''
const pass = getPostBy(node, false).identifier.toText()
Expand Down

0 comments on commit 920c925

Please sign in to comment.