移动端适配

This commit is contained in:
tangly1024
2022-12-25 19:54:31 +08:00
parent 6ee7870847
commit 5c733563b2
2 changed files with 4 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ const LayoutBase = props => {
}
return (
<div id="outer-wrapper" className="min-h-screen flex flex-col justify-between bg-hexo-background-gray dark:bg-black w-full overflow-hidden">
<div id="outer-wrapper" className="min-h-screen flex flex-col justify-between bg-hexo-background-gray dark:bg-black w-full">
<CommonHead meta={meta} siteInfo={siteInfo} />

View File

@@ -45,12 +45,12 @@ export const LayoutSlug = props => {
showTag={false}
>
<div id='inner-wrapper' className='flex'>
<div className={'drop-shadow-xl max-w-4xl 2xl:ml-36'}>
<div id='inner-wrapper'>
<div className={`drop-shadow-xl max-w-4xl ${show ? '2xl:ml-36' : ''}`}>
<div className="-mt-32 rounded-md mx-3 lg:border lg:rounded-xl lg:py-4 bg-white dark:bg-hexo-black-gray dark:border-black">
{lock && <ArticleLock validPassword={validPassword} />}
{!lock && <div id="container" className="overflow-x-auto flex-grow md:w-full ">
{!lock && <div id="container" className="overflow-x-auto md:w-full px-3 ">
{post?.type === 'Post' && <>
<div className='px-10'>
<ArticleInfo post={post} />