Update timeline

pull/1/head
Made Baruna 2021-12-23 23:17:03 +07:00
parent 4cc85e9359
commit 09fe4afa2e
No known key found for this signature in database
GPG Key ID: 5AA5DA16AA5DCEAD
4 changed files with 6 additions and 6 deletions

View File

@ -102,7 +102,7 @@ export const eventsData = [
end: '2021-12-27 03:59:59', end: '2021-12-27 03:59:59',
color: '#8EC0B3', color: '#8EC0B3',
zoom: '200%', zoom: '200%',
url: 'https://www.hoyolab.com/article/1608464', url: 'https://www.hoyolab.com/article/1653437',
showOnHome: true, showOnHome: true,
}, },
], ],
@ -163,8 +163,8 @@ export const eventsData = [
start: '2021-12-24 10:00:00', start: '2021-12-24 10:00:00',
end: '2022-01-03 03:59:59', end: '2022-01-03 03:59:59',
color: '#8FE3F0', color: '#8FE3F0',
zoom: '180%', zoom: '200%',
url: 'https://www.hoyolab.com/article/1608464', url: 'https://www.hoyolab.com/article/1732200',
showOnHome: true, showOnHome: true,
}, },
], ],
@ -199,7 +199,7 @@ export const eventsData = [
image: 'labyrinth_warriors.jpg', image: 'labyrinth_warriors.jpg',
start: '2021-10-30 04:00:00', start: '2021-10-30 04:00:00',
end: '2021-11-08 03:59:59', end: '2021-11-08 03:59:59',
color: '#FFE326', color: '#CFB1F1',
zoom: '230%', zoom: '230%',
url: 'https://genshin.mihoyo.com/en/news/detail/16356', url: 'https://genshin.mihoyo.com/en/news/detail/16356',
startOnly: true, startOnly: true,

View File

@ -29,7 +29,7 @@
let timeDifferenceEvent = 0; let timeDifferenceEvent = 0;
let timeDifferenceAsia = 0; let timeDifferenceAsia = 0;
let dayWidth = 50; let dayWidth = 40;
const eventHeight = 36; const eventHeight = 36;
const eventMargin = 20; const eventMargin = 20;
const padding = 10; const padding = 10;
@ -172,7 +172,7 @@
if (timelineContainer === undefined) return; if (timelineContainer === undefined) return;
if (timelineContainer.offsetWidth < 500) { if (timelineContainer.offsetWidth < 500) {
dayWidth = 40; dayWidth = 30;
await tick(); await tick();
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 176 KiB