Skip to content

Commit 17c3eab

Browse files
Merge pull request #9 from code-with-sam/hot-fix-v1.0.2
Hot fix v1.0.2
2 parents 5a7b39d + 14e3cff commit 17c3eab

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# steem-notifier v 1.0.1
1+
# steem-notifier v 1.0.2
2+
23

34
> Steem Notifier is a minimal taskbar application that send notifications about your [Steem account](http://steemit.com) through your native operating systems notification interface.
45

browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $(document).ready(()=> {
2222

2323
console.log('default user: ', defaultUser)
2424

25-
if(defaultUser !== 'false' && defaultUser === '' ){
25+
if(defaultUser !== 'false' && defaultUser !== false){
2626
$('.intro-pane').fadeOut(500)
2727
$('.animation-hidden').removeClass('animation-hidden')
2828
$('.intro-pane__username').val(defaultUser)
@@ -82,7 +82,7 @@ setInterval(()=> {
8282
ipcRenderer.on('user-data', (event, data) => {
8383
console.log(data)
8484
$('.notifactions__user-name').text(data.name)
85-
$('.notifactions__user-bio').text(data.bio.substring(0, 35))
85+
$('.notifactions__user-bio').text(data.bio)
8686
$('.notifactions__user-stats').text(`Following: ${data.followingCount} | Followers: ${data.followerCount} | Posts: ${data.numOfPosts}`)
8787
$('.notifactions__user-value').text(`Account Value: $${data.usdValue}`)
8888
$('.notifactions__user-image').attr('src', data.image)

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
box-sizing: border-box;
99
}
1010
body {
11-
padding-top: 20px;
11+
padding-top: 16px;
1212
-webkit-app-region: drag;
1313
font-family: Inconsolata, 'Courier New', Courier, monospace;
1414
margin: 0;
@@ -195,6 +195,7 @@
195195
float: left;
196196
padding-left: 30px;
197197
margin-top: 20px;
198+
max-width: 80%;
198199
}
199200
.notifactions__user-name {
200201
font-size: 15px;
@@ -207,6 +208,10 @@
207208
line-height: 0.8;
208209
margin: 0 0 10px 0;
209210
}
211+
212+
.notifactions__user-bio {
213+
line-height: 1;
214+
}
210215
.notifactions__user-stats {
211216
margin-top: 20px;
212217
}

main.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ function appReady() {
6666
tray.popUpContextMenu(contextMenu)
6767
})
6868

69+
createWindow();
70+
6971
tray.on('click', () => {
7072
if (appView === null){
7173
createWindow();
@@ -102,10 +104,13 @@ function createWindow() {
102104
appView = new BrowserWindow({
103105
titleBarStyle: 'hidden',
104106
width: 500,
105-
height: 300,
107+
height: 310,
106108
frame: true,
107109
show: false,
108-
resizable: false,
110+
minWidth: 500,
111+
minHeight: 300,
112+
maxWidth: 700,
113+
maxHeight: 400,
109114
x: trayPosition.x - 125,
110115
y: yPos,
111116
icon: path.join(__dirname, 'steem-icon.png')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "steem-notifier",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A minimal native steem notifier",
55
"main": "main.js",
66
"scripts": {

0 commit comments

Comments
 (0)