mirror of
https://github.com/Funkoala14/KnowledgeBase_OOIN.git
synced 2025-06-07 22:58:19 +08:00
[dev]update chat card style
This commit is contained in:
parent
546f4c4265
commit
843df8802a
@ -63,34 +63,13 @@ export default function NewChat() {
|
||||
kb.access === 'full' || kb.access === 'read' ? (
|
||||
<div key={kb.id} className='col'>
|
||||
<div
|
||||
className='card h-100 shadow-sm border-0 cursor-pointer'
|
||||
className='card h-100 bg-light border-0 cursor-pointer'
|
||||
onClick={() => handleSelectKnowledgeBase(kb.id)}
|
||||
style={{ cursor: 'pointer' }}
|
||||
>
|
||||
<div className='card-body'>
|
||||
<h5 className='card-title'>{kb.title}</h5>
|
||||
<div className='card-body py-4'>
|
||||
<p className='card-title h5'>{kb.title}</p>
|
||||
<p className='card-text text-muted'>{kb.description}</p>
|
||||
<div className='text-muted d-flex align-items-center gap-1'>
|
||||
<SvgIcon className='file' />
|
||||
{kb.documents} 文档
|
||||
<span className='ms-3 d-flex align-items-center gap-1'>
|
||||
<SvgIcon className='clock' />
|
||||
{kb.date}
|
||||
</span>
|
||||
</div>
|
||||
<div className='mt-3 d-flex justify-content-between align-items-end'>
|
||||
{kb.access === 'full' ? (
|
||||
<span className='badge bg-success-subtle text-success d-flex align-items-center gap-1'>
|
||||
<SvgIcon className='circle-yes' />
|
||||
完全访问
|
||||
</span>
|
||||
) : (
|
||||
<span className='badge bg-warning-subtle text-warning d-flex align-items-center gap-1'>
|
||||
<SvgIcon className='eye' />
|
||||
只读访问
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user