theme-game 微调

This commit is contained in:
tangly1024
2024-04-06 10:41:41 +08:00
parent 274f49d877
commit da69b6d4a8

View File

@@ -98,24 +98,24 @@ export default function GameEmbed({ post, siteInfo }) {
<Draggable stick='left'> <Draggable stick='left'>
<div <div
style={{ left: '0px', top: '1rem' }} style={{ left: '0px', top: '1rem' }}
className='fixed xl:hidden group space-x-1 flex items-center z-20 pr-3 pl-1 bg-[#202030] rounded-r-2xl shadow-lg '> className='text-white fixed xl:hidden group space-x-1 flex items-center z-20 pr-3 pl-1 bg-[#202030] rounded-r-2xl shadow-lg '>
<Link <Link
href='/' href='/'
className='px-1 py-3 hover:scale-125 duration-200 transition-all' className='px-1 py-3 hover:scale-125 duration-200 transition-all'
passHref> passHref>
<i className='fas fa-arrow-left' /> <i className='fas fa-chevron-left' />
</Link>{' '} </Link>{' '}
<span <span
className='text-white font-serif' className='font-serif px-1'
onClick={() => { onClick={() => {
document.querySelector('.game-info').scrollIntoView({ document.querySelector('.game-info').scrollIntoView({
behavior: 'smooth', behavior: 'smooth',
block: 'end', block: 'start',
inline: 'nearest' inline: 'nearest'
}) })
}}> }}>
{/* Title首字母 */} {/* Title首字母 */}
{siteInfo?.title?.charAt(0)} <i className='fas fa-info' />
</span> </span>
</div> </div>
</Draggable> </Draggable>