Skip to content

Commit 2e58b51

Browse files
authored
fix: post detail sticky title style, #684 (#1251)
1 parent 27c38d9 commit 2e58b51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

next/components/postDetail/postContent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ const TitleContent = ({ title }) => {
161161
<Title ref={titleRef}>{title}</Title>
162162
<div
163163
className={cn(
164-
"fixed py-5 z-10 top-0 transform -translate-y-full left-0 w-full bg-fillBgPrimary border border-strokeBorderDefault shadow-shadowCardDefault",
164+
"fixed py-4 z-10 top-0 transform -translate-y-full left-0 w-full bg-fillBgPrimary border border-strokeBorderDefault shadow-shadowCardDefault",
165165
scrollY > offsetTop && "translate-y-0",
166166
)}
167167
>
168168
<div className="md:max-w-[1144px] mx-auto md:px-8 px-5 flex relative">
169169
<div className="w-full md:!w-[calc(100%-320px)] flex items-center">
170170
<ArrowCaretLeft className="w-8 h-8 p-1 md:ml-8 ml-5 rounded-full border shadow absolute left-0 -translate-x-1/2 " />
171-
<div className="pl-8 md:px-8 font-[700] text-base md:font-[600] md:text-[20px] whitespace-nowrap overflow-hidden text-ellipsis">
171+
<div className="pl-8 md:px-8 font-[700] text-xs md:font-[600] md:text-base whitespace-nowrap overflow-hidden text-ellipsis">
172172
{title}
173173
</div>
174174
</div>

0 commit comments

Comments
 (0)