Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
10accb70
Commit
10accb70
authored
Aug 14, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:ui问题增加tooltip
parent
1dd069c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/modules/course-manage/components/LiveCourseList.jsx
+5
-5
src/modules/course-manage/components/LiveCourseList.less
+1
-1
No files found.
src/modules/course-manage/components/LiveCourseList.jsx
View file @
10accb70
...
@@ -151,8 +151,8 @@ class LiveCourseList extends React.Component {
...
@@ -151,8 +151,8 @@ class LiveCourseList extends React.Component {
{
!
hasCover
&&
<
img
className=
'course-cover'
src=
{
'https://image.xiaomaiketang.com/xm/Yip2YtFDwH.png'
}
alt=
''
/>
}
{
!
hasCover
&&
<
img
className=
'course-cover'
src=
{
'https://image.xiaomaiketang.com/xm/Yip2YtFDwH.png'
}
alt=
''
/>
}
<
div
>
<
div
>
<
Choose
>
<
Choose
>
<
When
condition=
{
record
.
courseName
.
length
>
14
}
>
<
When
condition=
{
record
.
courseName
.
length
>
0
}
>
<
Tooltip
title=
{
record
.
courseName
}
>
<
Tooltip
placement=
"topLeft"
title=
{
record
.
courseName
}
>
<
div
className=
'course-name'
>
{
record
.
courseName
}
</
div
>
<
div
className=
'course-name'
>
{
record
.
courseName
}
</
div
>
</
Tooltip
>
</
Tooltip
>
</
When
>
</
When
>
...
@@ -480,9 +480,9 @@ class LiveCourseList extends React.Component {
...
@@ -480,9 +480,9 @@ class LiveCourseList extends React.Component {
{
!
hasCover
&&
<
img
className=
'course-cover'
src=
{
'https://image.xiaomaiketang.com/xm/Yip2YtFDwH.png'
}
alt=
''
/>
}
{
!
hasCover
&&
<
img
className=
'course-cover'
src=
{
'https://image.xiaomaiketang.com/xm/Yip2YtFDwH.png'
}
alt=
''
/>
}
<
div
>
<
div
>
<
Choose
>
<
Choose
>
<
When
condition=
{
record
.
courseName
.
length
>
17
}
>
<
When
condition=
{
record
.
courseName
.
length
>
0
}
>
<
Tooltip
title=
{
record
.
courseName
}
>
<
Tooltip
placement=
"topLeft"
title=
{
record
.
courseName
}
>
<
div
className=
'course-name'
>
{
record
.
courseName
}
</
div
>
<
span
className=
'course-name'
>
{
record
.
courseName
}
</
span
>
</
Tooltip
>
</
Tooltip
>
</
When
>
</
When
>
<
Otherwise
>
<
Otherwise
>
...
...
src/modules/course-manage/components/LiveCourseList.less
View file @
10accb70
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
color: #333333;
color: #333333;
line-height: 20px;
line-height: 20px;
font-weight: bold;
font-weight: bold;
max-width:
20
0px;
max-width:
14
0px;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment