diff --git a/frontend/src/Components/Tooltip/Tooltip.js b/frontend/src/Components/Tooltip/Tooltip.js index 11dd100af..6a7cb9e3d 100644 --- a/frontend/src/Components/Tooltip/Tooltip.js +++ b/frontend/src/Components/Tooltip/Tooltip.js @@ -13,19 +13,15 @@ let maxWidth = null; function getMaxWidth() { const windowWidth = window.innerWidth; - if (windowWidth > parseInt(dimensions.breakpointLarge)) { + if (windowWidth >= parseInt(dimensions.breakpointLarge)) { maxWidth = 800; - } - - if (windowWidth > parseInt(dimensions.breakpointMedium)) { + } else if (windowWidth >= parseInt(dimensions.breakpointMedium)) { maxWidth = 650; - } - - if (windowWidth > parseInt(dimensions.breakpointSmall)) { + } else if (windowWidth >= parseInt(dimensions.breakpointSmall)) { maxWidth = 500; + } else { + maxWidth = 450; } - - maxWidth = 450; } class Tooltip extends Component { diff --git a/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js b/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js index e8185bf9a..228633255 100644 --- a/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js +++ b/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js @@ -143,7 +143,7 @@ EditRemotePathMappingModalContent.propTypes = { isSaving: PropTypes.bool.isRequired, saveError: PropTypes.object, item: PropTypes.shape(remotePathMappingShape).isRequired, - downloadClientHosts: PropTypes.arrayOf(PropTypes.string).isRequired, + downloadClientHosts: PropTypes.arrayOf(PropTypes.object).isRequired, onInputChange: PropTypes.func.isRequired, onSavePress: PropTypes.func.isRequired, onModalClose: PropTypes.func.isRequired,