mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-14 16:35:07 +01:00
fix incorrect unit for slide-width/height css variable #1263
This commit is contained in:
parent
db2523db27
commit
88fbfc5751
5 changed files with 6 additions and 6 deletions
|
|
@ -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' );
|
||||
dom.viewport.style.setProperty( '--slide-height', typeof config.height == 'string' ? config.height : config.height + 'px' );
|
||||
|
||||
if( config.shuffle ) {
|
||||
shuffle();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue