mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-11 13:59:03 +08:00
Optimize the knowledge base card UI (#3756)
### What problem does this PR solve? Set the title to 2 lines, display the excess part Set the description to 3 lines, display the excess part   ### Type of change - [x] Other (please describe):
This commit is contained in:
parent
fadbe23bfe
commit
b2abc36baa
@ -23,6 +23,35 @@
|
||||
.footerTop {
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.titleWrapper {
|
||||
margin: 16px 0;
|
||||
overflow: hidden;
|
||||
|
||||
.title {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
font-size: 24px;
|
||||
line-height: 32px;
|
||||
font-weight: 600;
|
||||
color: rgba(0, 0, 0, 0.88);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.description{
|
||||
margin-top: 4px;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 20px;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
|
@ -53,7 +53,7 @@ const KnowledgeCard = ({ item }: IProps) => {
|
||||
</div>
|
||||
<div className={styles.titleWrapper}>
|
||||
<span className={styles.title}>{item.name}</span>
|
||||
<p>{item.description}</p>
|
||||
<p className={styles.description}>{item.description}</p>
|
||||
</div>
|
||||
<div className={styles.footer}>
|
||||
<div className={styles.footerTop}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user