mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-02 00:09:40 +00:00
Added max width
This commit is contained in:
parent
e701d1ab6a
commit
f0c6dccadb
4 changed files with 23 additions and 17 deletions
|
|
@ -113,6 +113,8 @@ export default {
|
|||
ctx.restore()
|
||||
}
|
||||
|
||||
const twoColumnWidth = 180
|
||||
|
||||
ctx.globalAlpha = 1
|
||||
ctx.textBaseline = 'middle'
|
||||
|
||||
|
|
@ -136,7 +138,7 @@ export default {
|
|||
// Top left box
|
||||
createRoundedRect(15, 75, 280, 110)
|
||||
addText(this.yearStats.numBooksFinished, '48px', 'bold', 'white', '0px', 105, 120)
|
||||
addText(this.$strings.StatsBooksFinished, '20px', 'normal', tanColor, '0px', 105, 155)
|
||||
addText(this.$strings.StatsBooksFinished, '20px', 'normal', tanColor, '0px', 105, 155, twoColumnWidth)
|
||||
const readIconPath = new Path2D()
|
||||
readIconPath.addPath(new Path2D('M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59-7.59L19 7l-9 9z'), { a: 1.5, d: 1.5, e: 55, f: 115 })
|
||||
ctx.fillStyle = '#ffffff'
|
||||
|
|
@ -144,7 +146,7 @@ export default {
|
|||
|
||||
createRoundedRect(305, 75, 280, 110)
|
||||
addText(this.yearStats.numBooksListened, '48px', 'bold', 'white', '0px', 400, 120)
|
||||
addText(this.$strings.StatsBooksListenedTo, '20px', 'normal', tanColor, '0px', 400, 155)
|
||||
addText(this.$strings.StatsBooksListenedTo, '20px', 'normal', tanColor, '0px', 400, 155, twoColumnWidth)
|
||||
addIcon('local_library', 'white', '42px', 345, 130)
|
||||
|
||||
this.canvas = canvas
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue