mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 20:21:35 +00:00
Fix allow small map and depth chart
This commit is contained in:
parent
2d6cc04d2b
commit
16426dce60
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user