Skip to content

Commit

Permalink
Add 預告片 text
Browse files Browse the repository at this point in the history
  • Loading branch information
Asing1001 committed Nov 28, 2023
1 parent 14dd833 commit 2aa8f17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/components/movieDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class MovieDetail extends React.PureComponent<MovieDetailProps, { isExpanded: bo
</div>
</div>
<div className="col-xs-12 hidden-md hidden-lg">
<span>劇情簡介:</span>
<h5>劇情簡介:</h5>
<div
className={`collapsed-summary ${isExpanded ? 'expanded-summary' : ''}`} // Add or remove the 'expanded-summary' class
dangerouslySetInnerHTML={{
Expand All @@ -121,7 +121,8 @@ class MovieDetail extends React.PureComponent<MovieDetailProps, { isExpanded: bo
)}
</div>
{trailer && (
<div style={{ marginTop: '.5em', float: 'left', width: '100%' }}>
<div style={{ padding: '.5em', float: 'left', width: '100%' }}>
<h5>預告片:</h5>
<HLSVideoPlayer streamUrl={trailer.streamUrl} poster={trailer.poster} />
</div>
)}
Expand Down

0 comments on commit 2aa8f17

Please sign in to comment.