Skip to content

Commit

Permalink
feat: one more line clamp for translated title
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jan 14, 2025
1 parent 902d681 commit fe44c38
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ export function ListItem({

const lineClamp = useMemo(() => {
const envIsSafari = isSafari()
const lineClampTitle = settingWideMode ? 1 : 2
let lineClampTitle = settingWideMode ? 1 : 2
const lineClampDescription = settingWideMode ? 1 : 2

if (translation?.title) {
lineClampTitle += 1
}

// for tailwind
// line-clamp-[1] line-clamp-[2] line-clamp-[3] line-clamp-[4] line-clamp-[5] line-clamp-[6] line-clamp-[7] line-clamp-[8]

Expand Down

0 comments on commit fe44c38

Please sign in to comment.