Commit e0a865fa by zhujian

fix

parent ba1a4bdf
......@@ -9,6 +9,7 @@
import React from "react";
import { Modal, message, Tooltip, Switch, Dropdown, Button } from "antd";
import { FileTypeIcon, FileVerifyMap } from '@/common/constants/academic/lessonEnum';
import { Route, withRouter } from "react-router-dom";
import { PageControl, XMTable } from "@/components";
import { LIVE_SHARE_MAP } from "@/common/constants/academic/cloudClass";
......@@ -181,7 +182,7 @@ class KnowledgeBaseList extends React.Component {
const { current, size } = query
const columns = [
{
title: "课程名称",
title: "名称",
key: "name",
dataIndex: "name",
render: (val, record) => {
......@@ -194,7 +195,7 @@ class KnowledgeBaseList extends React.Component {
onClick={() => {
this.handleScanFile(record.source)
}}>
<div className={`folder-type ${record.source && record.source.folderFormat}`} />
<img src={FileTypeIcon[record.source.folderFormat] } style={{width:24,height:24}} alt='' className='item-img' />
{val.length > 25 ? (
<Tooltip title={val}>
<div className='course-name clamp'>{val}</div>
......@@ -241,7 +242,7 @@ class KnowledgeBaseList extends React.Component {
},
{
title: "",
},
{
title: "操作",
......
......@@ -109,7 +109,10 @@
.knowledge-base-list {
.record__item {
display: flex;
// align-items: center;
align-items: center;
.item-img{
margin-right: 4px;
}
.course-cover {
min-width: 107px;
max-width: 90px;
......@@ -153,13 +156,7 @@
text-overflow: ellipsis;
white-space: nowrap;
height: 20px;
&.clamp {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
white-space: normal;
height: 40px;
}
}
.course-time {
font-size: 12px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment