chore: 优化知识库页面,右侧内容占据屏幕剩下所有宽度
| | |
| | | ); |
| | | case 'search-test': |
| | | return ( |
| | | <div className="content" style={{width: '1000px'}}> |
| | | <div className="content" style={{width: '100%'}}> |
| | | <div style={{minHeight: 500}}> |
| | | <Form form={form} onFinish={onFinish} preserve={false}> |
| | | <div style={{display: "flex", gap: 10}}> |
| | |
| | | </div> |
| | | </div> |
| | | <div style={{display:"flex", flexDirection:"column", width:"60%"}}> |
| | | <div style={{backgroundColor:"#f0f0f0", marginLeft:"20px", height:"500px", overflowY:"scroll", padding:"5px"}}> |
| | | <div style={{backgroundColor:"#f0f0f0", marginLeft:"20px", height:"700px", overflowY:"scroll", padding:"5px"}}> |
| | | <List |
| | | itemLayout="horizontal" |
| | | dataSource={dataPreView} |
| | |
| | | </div> |
| | | </div> |
| | | <div style={{display:"flex", flexDirection:"column", width:"60%"}}> |
| | | <div style={{backgroundColor:"#f0f0f0", marginLeft:"20px", height:"500px", overflowY:"scroll", padding:"5px"}}> |
| | | <div style={{backgroundColor:"#f0f0f0", marginLeft:"20px", height:"700px", overflowY:"scroll", padding:"5px"}}> |
| | | <List |
| | | itemLayout="horizontal" |
| | | dataSource={dataPreView} |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | width: 100%; |
| | | height: 100vh; |
| | | } |
| | | .custom{ |
| | | color: red; |
| | |
| | | display: flex; |
| | | align-items: center; // 垂直居中对齐 |
| | | gap: 8px // 设置内容之间的间距 |
| | | } |
| | | } |
| | |
| | | .app-container { |
| | | display: flex; |
| | | height: 100vh; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .menu-container { |
| | |
| | | } |
| | | .content-container{ |
| | | overflow: auto; |
| | | flex: 1; |
| | | } |
| | | .file-container{ |
| | | display: flex; |
| | |
| | | } |
| | | .content { |
| | | padding: 10px; |
| | | height: 100vh; |
| | | } |
| | | |
| | | /* 在document.css中添加 */ |
| | |
| | | |
| | | .docx-content th, .docx-content td { |
| | | padding: 8px; |
| | | } |
| | | } |