Skip to content

Commit

Permalink
Bug fix and change window size.
Browse files Browse the repository at this point in the history
This commit is not important to refer.
  • Loading branch information
HyunmoAhn committed Oct 26, 2018
1 parent 91b26c1 commit fc39e1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/index.js
Expand Up @@ -10,8 +10,8 @@ const tray = TrayBar({
slashes: true,
}),
icon: path.resolve(__dirname, 'assets/clockTemplate.png'),
width: 250,
height: 100,
width: 235,
height: 130,
});

app.on('ready', () => {
Expand Down
4 changes: 2 additions & 2 deletions app/page/timer.js
Expand Up @@ -106,7 +106,7 @@ function countingMode(timer) {
function renderProgressView(time) {
function progressView(number) {
const hour = parseInt(number / 3600);
const minute = parseInt((number - hour * 60) / 60);
const minute = parseInt((number - hour * 3600) / 60);
const second = number % 60;

const hourClassName = cx('Progress__number', 'Progress__hour', { 'Progress__number--hide': hour === 0 });
Expand All @@ -133,7 +133,7 @@ function renderProgressView(time) {
*/
function settingView(number) {
const hour = parseInt(number / 3600);
const minute = parseInt((number - hour * 60) / 60);
const minute = parseInt((number - hour * 3600) / 60);
const second = number % 60;

return `
Expand Down

0 comments on commit fc39e1f

Please sign in to comment.