From 007f4cc281fb90915939d24052c6f57c8dea5ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 21 Aug 2019 10:05:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E8=AF=BE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/paths/PathDetail/DetailTop.css | 9 +++++++++ .../src/modules/paths/PathDetail/DetailTop.js | 19 ++++++++++++++++--- .../paths/PathDetail/PathDetailIndex.js | 2 +- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.css b/public/react/src/modules/paths/PathDetail/DetailTop.css index 8e520e41d..70291c7da 100644 --- a/public/react/src/modules/paths/PathDetail/DetailTop.css +++ b/public/react/src/modules/paths/PathDetail/DetailTop.css @@ -57,4 +57,13 @@ .pd4020{ padding: 0 40px 0 20px !important; +} + +.bannername780{ + max-width: 780px; + overflow: hidden; + -o-text-overflow: ellipsis; + text-overflow: ellipsis; + white-space: nowrap; + height: 40px; } \ No newline at end of file diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js index ad7ddd4b6..7de687555 100644 --- a/public/react/src/modules/paths/PathDetail/DetailTop.js +++ b/public/react/src/modules/paths/PathDetail/DetailTop.js @@ -255,7 +255,7 @@ class DetailTop extends Component{ ); - console.log(this.props.courses) + return( @@ -277,7 +277,7 @@ class DetailTop extends Component{