mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 07:26:46 +00:00
Merge pull request #201 from tangly1024/bug-fix-view-on-ipad
Bug fix view on ipad
This commit is contained in:
@@ -20,6 +20,8 @@ const BlogListPage = ({ page = 1, posts = [], postCount }) => {
|
|||||||
function updateCol() {
|
function updateCol() {
|
||||||
if (window.outerWidth > 1200) {
|
if (window.outerWidth > 1200) {
|
||||||
changeCol(3)
|
changeCol(3)
|
||||||
|
} else if (window.outerWidth > 900) {
|
||||||
|
changeCol(2)
|
||||||
} else {
|
} else {
|
||||||
changeCol(1)
|
changeCol(1)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,12 +59,12 @@ const LayoutBase = props => {
|
|||||||
|
|
||||||
{headerSlot}
|
{headerSlot}
|
||||||
|
|
||||||
<main id="wrapper" className="w-full py-8 min-h-screen">
|
<main id="wrapper" className="w-full py-8 md:px-8 xl:px-24 min-h-screen">
|
||||||
<div
|
<div
|
||||||
id="container-inner"
|
id="container-inner"
|
||||||
className="pt-14 w-full mx-auto lg:flex justify-center lg:space-x-4"
|
className="pt-14 w-full mx-auto lg:flex justify-center lg:space-x-4"
|
||||||
>
|
>
|
||||||
<div className="flex-grow w-full lg:max-w-4xl">
|
<div className="flex-grow w-full">
|
||||||
{onLoading ? <LoadingCover /> : children}
|
{onLoading ? <LoadingCover /> : children}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export const LayoutSlug = props => {
|
|||||||
<div className="w-full lg:shadow-sm lg:hover:shadow lg:border lg:rounded-xl lg:px-2 lg:py-4 bg-white dark:bg-hexo-black-gray dark:border-black">
|
<div className="w-full lg:shadow-sm lg:hover:shadow lg:border lg:rounded-xl lg:px-2 lg:py-4 bg-white dark:bg-hexo-black-gray dark:border-black">
|
||||||
{lock && <ArticleLock password={post.password} validPassword={validPassword} />}
|
{lock && <ArticleLock password={post.password} validPassword={validPassword} />}
|
||||||
|
|
||||||
{!lock && <div id="container" className="max-w-5xl overflow-x-auto flex-grow mx-auto md:w-full md:px-5 ">
|
{!lock && <div id="container" className="overflow-x-auto flex-grow mx-auto md:w-full md:px-5 ">
|
||||||
|
|
||||||
<article itemScope itemType="https://schema.org/Movie" className="subpixel-antialiased" >
|
<article itemScope itemType="https://schema.org/Movie" className="subpixel-antialiased" >
|
||||||
{/* Notion文章主体 */}
|
{/* Notion文章主体 */}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ const BlogPostCard = ({ post, showSummary }) => {
|
|||||||
<img
|
<img
|
||||||
src={post?.page_cover}
|
src={post?.page_cover}
|
||||||
alt={post.title}
|
alt={post.title}
|
||||||
className="hover:scale-125 rounded-t-xl lg:rounded-r-xl lg:rounded-t-none transform object-cover duration-500"
|
className="max-h-52 lg:max-h-72 w-full hover:scale-125 rounded-t-xl lg:rounded-r-xl lg:rounded-t-none transform object-cover duration-500"
|
||||||
/>
|
/>
|
||||||
{/* <Image className='hover:scale-125 rounded-t-xl lg:rounded-r-xl lg:rounded-t-none transform duration-500' src={post?.page_cover} alt={post.title} layout='fill' objectFit='cover' loading='lazy' /> */}
|
{/* <Image className='hover:scale-125 rounded-t-xl lg:rounded-r-xl lg:rounded-t-none transform duration-500' src={post?.page_cover} alt={post.title} layout='fill' objectFit='cover' loading='lazy' /> */}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user