Skip to content

Commit 0252e42

Browse files
authored
Merge pull request #13413 from bruvellu/bugfix/13411-uncentered-video-button
Center big play button in video divs
2 parents be2992e + 952a229 commit 0252e42

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

news/changelog-1.9.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ All changes included in 1.9:
88

99
- Update `esbuild` to 0.25.10
1010
- Update `deno` to 2.4.5
11+
12+
## Formats
13+
14+
### `html`
15+
16+
- ([#13413](https://github.com/quarto-dev/quarto-cli/issues/13413)): Fix uncentered play button in videos from cross-reference divs.

src/resources/extensions/quarto/video/video.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ local videoJSBuilder = function(params)
160160
VIDEO_SHORTCODE_NUM_VIDEOJS = VIDEO_SHORTCODE_NUM_VIDEOJS + 1
161161
local id = "video_shortcode_videojs_video" .. VIDEO_SHORTCODE_NUM_VIDEOJS
162162

163-
local SNIPPET = [[<video id="{id}"{width}{height} class="video-js vjs-default-skin {fluid}" controls preload="auto" data-setup='{}' title="{title}"><source src="{src}"></video>]]
163+
local SNIPPET = [[<video id="{id}"{width}{height} class="video-js vjs-default-skin vjs-big-play-centered {fluid}" controls preload="auto" data-setup='{}' title="{title}"><source src="{src}"></video>]]
164164
local snippet = params.snippet or SNIPPET
165165
snippet = replaceCommonAttributes(snippet, params)
166166
snippet = interpolate {

0 commit comments

Comments
 (0)