File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,11 @@ export default class MultiMediaChoice extends H5P.Question {
24
24
this . params = Util . extendParams ( params ) ;
25
25
26
26
// Override subcontent params
27
- for ( const option of this . params . options ) {
28
- if ( option . media ?. library ?. includes ( 'H5P.Audio' ) ) {
29
- option . media . params . fitToWrapper = false ; // VA-523: prevent warped button
27
+ if ( Array . isArray ( this . params ?. options ) ) {
28
+ for ( const option of this . params . options ) {
29
+ if ( option . media ?. library ?. includes ( 'H5P.Audio' ) ) {
30
+ option . media . params . fitToWrapper = false ; // VA-523: prevent warped button
31
+ }
30
32
}
31
33
}
32
34
Original file line number Diff line number Diff line change 167
167
bottom : 0 ;
168
168
right : 0 ;
169
169
margin : 0.5em ;
170
+ padding : 0 ;
170
171
width : $button-size ;
171
172
height : $button-size ;
172
173
display : flex ;
252
253
display : flex ;
253
254
justify-content : center ;
254
255
align-items : center ;
256
+ padding : 0 ;
255
257
256
258
@container h5p-mmc-modal-container (width < 480px ) {
257
259
right : 0 ;
You can’t perform that action at this time.
0 commit comments