sharebar position

This commit is contained in:
tangly1024.com
2023-04-26 16:39:52 +08:00
parent 262dca3251
commit abd80f4c8d
7 changed files with 19 additions and 14 deletions

View File

@@ -340,10 +340,11 @@ const ShareButtons = ({ shareUrl, title, body, image }) => {
</button>
}
if (singleService === 'wechat') {
return <button onMouseEnter={openPopover} onMouseLeave={closePopover} aria-label={singleService} key={singleService} className='relative cursor-pointer bg-green-600 text-white rounded-full mx-1'>
return <button onMouseEnter={openPopover} onMouseLeave={closePopover} aria-label={singleService} key={singleService} className='cursor-pointer bg-green-600 text-white rounded-full mx-1'>
<div id='wechat-button'>
<i className='fab fa-weixin w-8' />
</div>
<div className='absolute'>
<div id='pop' className={(qrCodeShow ? 'opacity-100 ' : ' invisible opacity-0') + ' z-40 absolute bottom-10 -left-10 bg-white shadow-xl transition-all duration-200 text-center'}>
<div className='p-2 mt-1'>
<QRCode value={shareUrl} fgColor='#000000' />
@@ -352,6 +353,7 @@ const ShareButtons = ({ shareUrl, title, body, image }) => {
{locale.COMMON.SCAN_QR_CODE}
</span>
</div>
</div>
</button>
}
if (singleService === 'link') {