Skip to content

Commit

Permalink
fix max height for video player
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Feb 6, 2023
1 parent 9d8821e commit a7c6ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions static/coffee/main/react/video_player.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default class VideoPlayer extends React.Component
}
style: {
aspectRatio: "#{@props.upload.width} / #{@props.upload.height}"
maxHeight: "#{@props.upload.height}px"
}
},
if @state.video
Expand Down
2 changes: 1 addition & 1 deletion widgets/submission_list_video_file.moon
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SubmissionListVideoFile extends require "widgets.base"
inner_content: =>
div {
class: "submission_video_widget",
style: "aspect-ratio: #{@props.upload.width} / #{@props.upload.height};"
style: "aspect-ratio: #{@props.upload.width} / #{@props.upload.height}; max-height: #{@props.upload.height}px;"
}, ->
div class: "control_buttons", ->
button disabled: true, class: "button", "Play Video"
Expand Down

0 comments on commit a7c6ab2

Please sign in to comment.