Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
stdj_h5
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-11-04 14:01:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f9db6dfc0f9a17e8c92b5965835e80fb975c3ce2
f9db6dfc
1 parent
4b7beb93
style(Home): 限制新闻标题显示为两行并添加省略号
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/views/Home.vue
src/views/Home.vue
View file @
f9db6df
...
...
@@ -1260,8 +1260,10 @@ const handleNewsClick = (item) => {
line-height: 1.4;
margin-bottom: 0.5rem;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
white-space: nowrap;
}
.news-date {
...
...
Please
register
or
login
to post a comment