dmencu 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -419,6 +419,12 @@ function OpcionMultipleDespliegue(props:{opcionM:OpcionMultiple, forPk:ForPk}){
419
419
  direct:true,
420
420
  fun: registradorDeVariable(opcionM)
421
421
  })
422
+ const updateWindowWidth = function(){
423
+ setWindowWidth(window.innerWidth);
424
+ }
425
+
426
+ const [windowWidth, setWindowWidth] = useState(window.innerWidth);
427
+ window.addEventListener('resize', updateWindowWidth);
422
428
  return <DesplegarCasillero
423
429
  id={id}
424
430
  casillero={opcionM}
@@ -430,7 +436,7 @@ function OpcionMultipleDespliegue(props:{opcionM:OpcionMultiple, forPk:ForPk}){
430
436
  verIdGuion={true}
431
437
  leer={opcionM.leer!==false}
432
438
  forPk={props.forPk}
433
- style={{maxWidth:'60%'}}
439
+ style={{maxWidth:windowWidth-400}} //TODO MEJORAR
434
440
  />
435
441
  <SiNoDespliegue
436
442
  casilleroConOpciones={opcionM}