#Move vertical scrollbar in mods' settings to right-most edge of the dialog

1 messages · Page 1 of 1 (latest)

limber rain
#

Currently the vertical overflow scrollbar for mods' settings dialog lies to the right of the registered react component, leaving empty space (padding of 40) from the right-most edge of the dialog. Ideally the scrollbar would be at the right-most edge of the dialog and not floating some distance away from it (padding 40).

Maybe just remove all horizontal padding completely... the mod authors can set whatever padding/margin they like in their own component's container

limber rain
#

much better with no padding, I can set my own margins too

// **ahem**
  useEffect(() => {
    let node = thisRef.current?.parentNode;
    while (
      node instanceof HTMLElement &&
      !node.classList.contains('MuiDialogContent-root')
    ) {
      node.style.padding = '0';
      node = node.parentNode;
    }
  }, []);
oak anvilBOT
#

@limber rain Your report has been looked into and a related change is coming! A related change is planned for version v0.6.57. Thank you for your feedback!