@@ -129,8 +129,8 @@ export function initImageDiff() {
129129 initOverlay ( createContext ( $imageAfter [ 2 ] , $imageBefore [ 2 ] ) ) ;
130130 }
131131
132- hideElem ( $container . find ( '> .loader' ) ) ;
133132 $container . find ( '> .gt-hidden' ) . removeClass ( 'gt-hidden' ) ;
133+ hideElem ( $container . find ( '.ui.loader' ) ) ;
134134 }
135135
136136 function initSideBySide ( sizes ) {
@@ -155,7 +155,7 @@ export function initImageDiff() {
155155 height : sizes . size1 . height * factor
156156 } ) ;
157157 sizes . image1 . parent ( ) . css ( {
158- margin : `${ sizes . ratio [ 1 ] * factor + 15 } px ${ sizes . ratio [ 0 ] * factor } px ${ sizes . ratio [ 1 ] * factor } px ` ,
158+ margin : `10px auto ` ,
159159 width : sizes . size1 . width * factor + 2 ,
160160 height : sizes . size1 . height * factor + 2
161161 } ) ;
@@ -164,7 +164,7 @@ export function initImageDiff() {
164164 height : sizes . size2 . height * factor
165165 } ) ;
166166 sizes . image2 . parent ( ) . css ( {
167- margin : `${ sizes . ratio [ 3 ] * factor } px ${ sizes . ratio [ 2 ] * factor } px ` ,
167+ margin : `10px auto ` ,
168168 width : sizes . size2 . width * factor + 2 ,
169169 height : sizes . size2 . height * factor + 2
170170 } ) ;
@@ -255,13 +255,10 @@ export function initImageDiff() {
255255 width : sizes . size2 . width * factor + 2 ,
256256 height : sizes . size2 . height * factor + 2
257257 } ) ;
258+
258259 sizes . image2 . parent ( ) . parent ( ) . css ( {
259260 width : sizes . max . width * factor + 2 ,
260- height : sizes . max . height * factor + 2
261- } ) ;
262- $container . find ( '.onion-skin' ) . css ( {
263- width : sizes . max . width * factor + 2 ,
264- height : sizes . max . height * factor + 4
261+ height : sizes . max . height * factor + 2 + 20 ,
265262 } ) ;
266263
267264 const $range = $container . find ( "input[type='range']" ) ;
0 commit comments