sharebar-移动端适配

This commit is contained in:
tangly1024
2023-05-03 14:28:04 +08:00
parent 477cdf99e4
commit 671c428e20

View File

@@ -12,7 +12,8 @@ const ShareBar = ({ post }) => {
const shareUrl = BLOG.LINK + router.asPath
return <div className='py-1 flex overflow-x-auto justify-end'>
return <div className='m-1 overflow-x-auto'>
<div className='flex w-full md:justify-end'>
<ShareButtons shareUrl={shareUrl} title={post.title} image={post.pageCover} body={
post.title +
' | ' +
@@ -22,6 +23,7 @@ const ShareBar = ({ post }) => {
' ' +
post.summary
} />
</div>
</div>
}
export default ShareBar