Update timeline
parent
4cc85e9359
commit
09fe4afa2e
|
@ -102,7 +102,7 @@ export const eventsData = [
|
|||
end: '2021-12-27 03:59:59',
|
||||
color: '#8EC0B3',
|
||||
zoom: '200%',
|
||||
url: 'https://www.hoyolab.com/article/1608464',
|
||||
url: 'https://www.hoyolab.com/article/1653437',
|
||||
showOnHome: true,
|
||||
},
|
||||
],
|
||||
|
@ -163,8 +163,8 @@ export const eventsData = [
|
|||
start: '2021-12-24 10:00:00',
|
||||
end: '2022-01-03 03:59:59',
|
||||
color: '#8FE3F0',
|
||||
zoom: '180%',
|
||||
url: 'https://www.hoyolab.com/article/1608464',
|
||||
zoom: '200%',
|
||||
url: 'https://www.hoyolab.com/article/1732200',
|
||||
showOnHome: true,
|
||||
},
|
||||
],
|
||||
|
@ -199,7 +199,7 @@ export const eventsData = [
|
|||
image: 'labyrinth_warriors.jpg',
|
||||
start: '2021-10-30 04:00:00',
|
||||
end: '2021-11-08 03:59:59',
|
||||
color: '#FFE326',
|
||||
color: '#CFB1F1',
|
||||
zoom: '230%',
|
||||
url: 'https://genshin.mihoyo.com/en/news/detail/16356',
|
||||
startOnly: true,
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
let timeDifferenceEvent = 0;
|
||||
let timeDifferenceAsia = 0;
|
||||
|
||||
let dayWidth = 50;
|
||||
let dayWidth = 40;
|
||||
const eventHeight = 36;
|
||||
const eventMargin = 20;
|
||||
const padding = 10;
|
||||
|
@ -172,7 +172,7 @@
|
|||
if (timelineContainer === undefined) return;
|
||||
|
||||
if (timelineContainer.offsetWidth < 500) {
|
||||
dayWidth = 40;
|
||||
dayWidth = 30;
|
||||
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 |
Loading…
Reference in New Issue