mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 15:10:19 +00:00
修复next/example搜索结果内容太长
This commit is contained in:
@@ -223,3 +223,12 @@ nav {
|
|||||||
.tk-main a {
|
.tk-main a {
|
||||||
@apply text-blue-700
|
@apply text-blue-700
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 最多显示4行文字 */
|
||||||
|
.p-4-lines {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 4;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
@@ -42,7 +42,7 @@ export const BlogListPage = props => {
|
|||||||
</p>
|
</p>
|
||||||
{/* 搜索结果 */}
|
{/* 搜索结果 */}
|
||||||
{p.results && (
|
{p.results && (
|
||||||
<p className="mt-4 text-gray-700 dark:text-gray-300 text-sm font-light leading-7">
|
<p className="p-4-lines mt-4 text-gray-700 dark:text-gray-300 text-sm font-light leading-7">
|
||||||
{p.results.map(r => (
|
{p.results.map(r => (
|
||||||
<span key={r}>{r}</span>
|
<span key={r}>{r}</span>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ const BlogPostCard = ({ post, showSummary }) => {
|
|||||||
|
|
||||||
{/* 搜索结果 */}
|
{/* 搜索结果 */}
|
||||||
{post.results && (
|
{post.results && (
|
||||||
<p className="mt-4 text-gray-700 dark:text-gray-300 text-sm font-light leading-7">
|
<p className="p-4-lines mt-4 text-gray-700 dark:text-gray-300 text-sm font-light leading-7">
|
||||||
{post.results.map(r => (
|
{post.results.map(r => (
|
||||||
<span key={r}>{r}</span>
|
<span key={r}>{r}</span>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user