diff --git a/src/factory/components/Scene/index.jsx b/src/factory/components/Scene/index.jsx index 862cd5d9..fbea24f5 100644 --- a/src/factory/components/Scene/index.jsx +++ b/src/factory/components/Scene/index.jsx @@ -51,7 +51,7 @@ const Scene = ({ zoneId }) => { sceneList.map((scene, index) => { return

{scene.name}

-

{scene.summary}

+

{scene.summary}

查看详情 diff --git a/src/factory/components/Scene/index.scss b/src/factory/components/Scene/index.scss index 2ae6b114..6cb21a5d 100644 --- a/src/factory/components/Scene/index.scss +++ b/src/factory/components/Scene/index.scss @@ -34,6 +34,10 @@ font-family: alibabareg; color: #091221; font-size: 16px; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; } a { diff --git a/src/factory/scene/index.jsx b/src/factory/scene/index.jsx index 04c556fc..4bb1e9fb 100644 --- a/src/factory/scene/index.jsx +++ b/src/factory/scene/index.jsx @@ -54,7 +54,7 @@ function Index(props) {

{detail.name}

-

{detail.summary}

+

{detail.summary}

diff --git a/src/factory/scene/index.scss b/src/factory/scene/index.scss index 209e7c88..81fec2e4 100644 --- a/src/factory/scene/index.scss +++ b/src/factory/scene/index.scss @@ -41,6 +41,10 @@ font-family: alibabareg; color: #091221; font-size: 16px; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; } .header-img {