Skip to content

Commit

Permalink
fix incorrect unit for slide-width/height css variable hakimel#1263
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Sep 26, 2023
1 parent db2523d commit 88fbfc5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/reveal.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ export default function( revealElement, options ) {
dom.wrapper.setAttribute( 'data-background-transition', config.backgroundTransition );

// Expose our configured slide dimensions as custom props
dom.viewport.style.setProperty( '--slide-width', config.width + 'px' );
dom.viewport.style.setProperty( '--slide-height', config.height + 'px' );
dom.viewport.style.setProperty( '--slide-width', typeof config.width == 'string' ? config.width : config.width + 'px' );

Check failure on line 455 in js/reveal.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Expected '===' and instead saw '=='
dom.viewport.style.setProperty( '--slide-height', typeof config.height == 'string' ? config.height : config.height + 'px' );

Check failure on line 456 in js/reveal.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Expected '===' and instead saw '=='

if( config.shuffle ) {
shuffle();
Expand Down

0 comments on commit 88fbfc5

Please sign in to comment.