File tree 1 file changed +2
-5
lines changed
src/components/widgets/post
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { PostPinIcon } from '~/components/widgets/post/PostPinIcon'
10
10
import { PostItemHoverOverlay } from './PostItemHoverOverlay'
11
11
import { PostMetaBar } from './PostMetaBar'
12
12
13
- export const PostItem = memo < { data : PostModel } > ( ( { data } ) => {
13
+ export const PostItem = memo < { data : PostModel } > ( function PostItem ( { data } ) {
14
14
const displayText =
15
15
data . text . length > 300
16
16
? `${ RemoveMarkdown ( data . text . slice ( 0 , 300 ) ) } ...`
@@ -25,10 +25,7 @@ export const PostItem = memo<{ data: PostModel }>(({ data }) => {
25
25
className = "relative flex flex-col py-8 focus-visible:!shadow-none"
26
26
>
27
27
< PostItemHoverOverlay />
28
- < h2
29
- className = "relative text-2xl font-medium"
30
- style = { { wordBreak : 'break-word' } }
31
- >
28
+ < h2 className = "relative break-words text-2xl font-medium" >
32
29
< Balancer > { data . title } </ Balancer >
33
30
34
31
< PostPinIcon pin = { ! ! data . pin } id = { data . id } />
You can’t perform that action at this time.
0 commit comments