Skip to content

Commit a303da8

Browse files
author
yurim
committed
feat: PostCard 컴포넌트 스타일 개선 및 텍스트 오버플로우 처리
1 parent 3629364 commit a303da8

File tree

1 file changed

+7
-1
lines changed
  • fundamentals/today-i-learned/src/components/features/discussions

1 file changed

+7
-1
lines changed

fundamentals/today-i-learned/src/components/features/discussions/PostCard.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,21 @@ const postTitle = css({
250250
letterSpacing: "-0.4px",
251251
color: "#0F0F0F",
252252
transition: "colors 0.15s ease-in-out",
253+
overflow: "hidden",
254+
textOverflow: "ellipsis",
255+
whiteSpace: "nowrap",
253256
_hover: {
254257
color: "rgb(55, 65, 81)"
255258
}
256259
});
257260

258261
const contentPreview = css({
259262
display: "-webkit-box",
260-
WebkitLineClamp: "2",
263+
WebkitLineClamp: "3",
264+
// @ts-ignore
265+
WebkitBoxOrient: "vertical",
261266
overflow: "hidden",
267+
textOverflow: "ellipsis",
262268
transition: "colors 0.15s ease-in-out",
263269
_hover: {
264270
color: "rgba(0, 0, 0, 0.6)"

0 commit comments

Comments
 (0)