Fix allow small map and depth chart

This commit is contained in:
Reckless_Satoshi 2023-10-17 08:21:45 -07:00
parent 2d6cc04d2b
commit 16426dce60
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 4 additions and 4 deletions

View File

@ -53,8 +53,8 @@ const DepthChart: React.FC<DepthChartProps> = ({
const [currencyCode, setCurrencyCode] = useState<number>(1);
const [center, setCenter] = useState<number>();
const height = maxHeight < 20 ? 20 : maxHeight;
const width = maxWidth < 20 ? 20 : maxWidth > 72.8 ? 72.8 : maxWidth;
const height = maxHeight < 10 ? 10 : maxHeight;
const width = maxWidth < 10 ? 10 : maxWidth > 72.8 ? 72.8 : maxWidth;
useEffect(() => {
setCurrencyCode(fav.currency === 0 ? 1 : fav.currency);

View File

@ -37,8 +37,8 @@ const MapChart: React.FC<MapChartProps> = ({
const [acceptedTilesWarning, setAcceptedTilesWarning] = useState<boolean>(false);
const [openWarningDialog, setOpenWarningDialog] = useState<boolean>(false);
const height = maxHeight < 20 ? 20 : maxHeight;
const width = maxWidth < 20 ? 20 : maxWidth > 72.8 ? 72.8 : maxWidth;
const height = maxHeight < 5 ? 5 : maxHeight;
const width = maxWidth < 10 ? 10 : maxWidth > 72.8 ? 72.8 : maxWidth;
return (
<Paper