Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit 3775527

Browse files
committed
Fixed font sizes
1 parent 6945ff3 commit 3775527

File tree

9 files changed

+28
-9
lines changed

9 files changed

+28
-9
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"request": "^2.88.2",
6161
"rss-finder": "^2.1.4",
6262
"rss-parser": "^3.10.0",
63+
"sass-rem": "^2.0.1",
6364
"splitpanes": "^2.3.6",
6465
"ssri": "^8.0.1",
6566
"uuid-by-string": "^3.0.2",

src/App.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default {
1212
<style lang="scss">
1313
$primary: #579EAB;
1414
@import './node_modules/bootstrap/scss/bootstrap';
15+
@import './node_modules/sass-rem/rem';
1516
1617
/* open-sans-300 - latin_cyrillic-ext */
1718
@font-face {
@@ -267,7 +268,7 @@ body {
267268
position: relative;
268269
flex-grow: 0;
269270
width: 260px;
270-
font-size: 14px;
271+
font-size: rem(16px);
271272
height: 100%;
272273
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
273274
}
@@ -312,7 +313,7 @@ body {
312313
313314
.sidebar-heading {
314315
font-weight: 600;
315-
font-size: 0.85rem;
316+
font-size: rem(16px);
316317
text-transform: uppercase;
317318
}
318319

src/background.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import i18nextMainBackend from './i18nmain.config'
2929
import {
3030
parseArticle
3131
} from './main/article'
32-
const btoa = require('btoa')
3332
const FormData = require('form-data')
3433
const i18nextBackend = require('i18next-electron-fs-backend')
3534

@@ -123,6 +122,15 @@ async function createWindow () {
123122
}
124123
})
125124

125+
win.on('close', (event) => {
126+
if (app.quitting) {
127+
win = null
128+
} else {
129+
event.preventDefault()
130+
win.hide()
131+
}
132+
})
133+
126134
win.on('closed', () => {
127135
win = null
128136
})

src/components/ArticleDetail.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ export default {
185185
}
186186
</script>
187187
<style lang="scss">
188+
@import './node_modules/sass-rem/rem';
188189
189190
.content-wrapper {
190191
overflow: hidden;
@@ -265,7 +266,7 @@ export default {
265266
font-size: 2em;
266267
color: var(--text-color);
267268
small {
268-
font-size: 14px;
269+
font-size: rem(14px);
269270
color: var(--h2-small-color);
270271
}
271272
}
@@ -306,7 +307,7 @@ export default {
306307
}
307308
308309
h3 {
309-
font-size: 22px;
310+
font-size: rem(22px);
310311
margin-top: 15px;
311312
line-height: 29px;
312313
font-weight: 700;

src/components/ArticleList.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ export default {
214214
}
215215
</script>
216216
<style lang="scss">
217+
@import './node_modules/sass-rem/rem';
218+
217219
.articles-inner {
218220
position: absolute;
219221
top: 0;
@@ -280,7 +282,7 @@ export default {
280282
.articles-list {
281283
position: relative;
282284
flex-grow: 0;
283-
font-size: 14px;
285+
font-size: rem(16px);
284286
width: 350px;
285287
height: 100%;
286288
border-right: 1px solid var(--border-color);
@@ -408,7 +410,7 @@ export default {
408410
.statusMsg {
409411
line-height: 30px;
410412
width: 100%;
411-
font-size: 12px;
413+
font-size: rem(14px);
412414
text-align: center;
413415
}
414416

src/components/ArticleListItem.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export default {
9292
formatDate (article) {
9393
let formatDate
9494
if (article.source === 'inoreader' || article.source === 'greader' || article.source === 'fever') {
95+
console.log(article)
9596
formatDate = dayjs.unix(article.publishUnix).fromNow()
9697
} else if (article.source === 'fever') {
9798
formatDate = dayjs.unix(article.pubDate).fromNow()

src/services/greader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default {
268268
: null,
269269
itunes: item.itunes || null,
270270
played: false,
271-
publishUnix: dayjs(item.published).unix(),
271+
publishUnix: item.published,
272272
feed_uuid: feed.feed_uuid,
273273
category: feed.categories.length > 0 ? feed.categories[0].label : null,
274274
source: 'greader',

src/services/inoreader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export default {
288288
: null,
289289
itunes: item.itunes || null,
290290
played: false,
291-
publishUnix: dayjs(item.published).unix(),
291+
publishUnix: item.published,
292292
feed_uuid: feed.feed_uuid,
293293
category: feed.categories.length > 0 ? feed.categories[0].label : null,
294294
source: 'inoreader',

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10651,6 +10651,11 @@ sass-loader@^10.0.5:
1065110651
schema-utils "^3.0.0"
1065210652
semver "^7.3.2"
1065310653

10654+
sass-rem@^2.0.1:
10655+
version "2.0.1"
10656+
resolved "https://registry.yarnpkg.com/sass-rem/-/sass-rem-2.0.1.tgz#dd863ec9ca5e0597eae5dd239f1f00a6c0f729b0"
10657+
integrity sha512-Fuf7i1Wr7n1lIdCiImhCJ1/S0jEYq1OmrlqyKuJKSU2B2kHbU09HJIo5AuADvbf3DJLlRxU7b8Jm8D6m5lfqmA==
10658+
1065410659
sass@^1.26.5:
1065510660
version "1.34.1"
1065610661
resolved "https://registry.yarnpkg.com/sass/-/sass-1.34.1.tgz#30f45c606c483d47b634f1e7371e13ff773c96ef"

0 commit comments

Comments
 (0)