Skip to content

Commit

Permalink
feat: ✨ decrease minimum window dimensions
Browse files Browse the repository at this point in the history
- Kuro can take shrink down to 10% of your screen width and 30% of screen height

- close #KURO52 & #54
  • Loading branch information
davidsmorais committed Sep 5, 2022
1 parent 7708e9e commit 8de3ed8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/win.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ class Win {
}

get _minDimensions() {
const [minWidth, minHeight] = this._screenDimensions.map(x =>
Math.round(x * 0.3),
const multipliers = [0.1, 0.3];
const [minWidth, minHeight] = this._screenDimensions.map((x, idx) =>
Math.round(x * multipliers[idx]),
);
return { minWidth, minHeight };
}
Expand Down

0 comments on commit 8de3ed8

Please sign in to comment.