Skip to content

Commit

Permalink
feat: better subtitle select style (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
journey-ad authored Jan 16, 2024
1 parent 4939af1 commit dbf9df2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions src/pages/home/previews/aliyun_video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,15 @@ const Preview = () => {
<span
title={item.name}
style={{
display: "inline-block",
"max-width": "15em",
"text-overflow": "ellipsis",
"max-width": "200px",
overflow: "hidden",
"text-overflow": "ellipsis",
"word-break": "break-all",
"white-space": "normal",
display: "-webkit-box",
"-webkit-line-clamp": "2",
"-webkit-box-orient": "vertical",
"font-size": "12px",
}}
>
{item.name}
Expand Down
11 changes: 8 additions & 3 deletions src/pages/home/previews/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,15 @@ const Preview = () => {
<span
title={item.name}
style={{
display: "inline-block",
"max-width": "15em",
"text-overflow": "ellipsis",
"max-width": "200px",
overflow: "hidden",
"text-overflow": "ellipsis",
"word-break": "break-all",
"white-space": "normal",
display: "-webkit-box",
"-webkit-line-clamp": "2",
"-webkit-box-orient": "vertical",
"font-size": "12px",
}}
>
{item.name}
Expand Down

0 comments on commit dbf9df2

Please sign in to comment.