Skip to content

Commit

Permalink
Merge pull request #991 from aaronreed708/fix-mintarget-area
Browse files Browse the repository at this point in the history
#990: fix minimum target area broken
  • Loading branch information
aaronreed708 authored Aug 9, 2024
2 parents 7f569ef + 7c5e0f6 commit 8b1c6fb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions code/src/ui/src/pages/atoms/MinimumTargetAtom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export const MinimumTargetAtom: React.FC<Props> = ({ atoms }) => {
}
selectables = selectables.sort();
if (!selectables) return;
for (var j = 0; j < selectables.length; i++) {
const s = selectables[i].toString() + 'px';
for (var j = 0; j < selectables.length; j++) {
const s = selectables[j].toString() + 'px';
r.push(
<MenuItem key={s} value={selectables[j]}>
{' '}
Expand All @@ -71,16 +71,16 @@ export const MinimumTargetAtom: React.FC<Props> = ({ atoms }) => {
const renderMobileMinTargetSelectables = () => {
var r = [];
var selectables = [44, 48];
for (var i = 3; i <= 7; i++) {
const newVal = (atoms.gridSettings.grid.getValue() || 8) * i;
for (var k = 3; k <= 7; k++) {
const newVal = (atoms.gridSettings.grid.getValue() || 8) * k;
if (newVal !== 44 && newVal !== 48) selectables.push(newVal);
}
selectables = selectables.sort();
if (!selectables) return;
for (var k = 0; k < selectables.length; k++) {
const s = selectables[i].toString() + 'px';
for (var l = 0; l < selectables.length; l++) {
const s = selectables[l].toString() + 'px';
r.push(
<MenuItem key={s} value={selectables[k]}>
<MenuItem key={s} value={selectables[l]}>
{' '}
{s}{' '}
</MenuItem>
Expand Down

0 comments on commit 8b1c6fb

Please sign in to comment.