Skip to content

Commit

Permalink
Show three next heats on next up
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter authored Oct 22, 2023
1 parent 8021ef8 commit aeb05aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/NextUp.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="grid grid-rows-[1fr_2fr] bg-white dark:bg-black">
<div class="grid grid-rows-[1fr_3fr] bg-white dark:bg-black">
<div class="bg-green-100 dark:bg-green-500">
<div class="container mx-auto flex items-center h-full p-y-8">
<div class="min-w-full overflow-x-auto grid grid-cols-[3rem_auto] gap-2">
Expand All @@ -18,7 +18,7 @@
</div>
<div class="container mx-auto flex items-center h-full p-y-8">
<div class="min-w-full overflow-x-auto grid grid-cols-[3rem_auto] gap-8">
<template v-for="heat of nextTwo" :key="heat">
<template v-for="heat of nextThree" :key="heat">
<div class="sticky right-2 flex items-center justify-end font-bold text-2xl dark:text-white">
{{ heat }}
</div>
Expand Down Expand Up @@ -92,8 +92,8 @@ const heats = computed(() => {
return existing
})
const nextTwo = computed(() => {
return [heatPlusN(1), heatPlusN(2)].filter(n => typeof n === 'number') as number[]
const nextThree = computed(() => {
return [heatPlusN(1), heatPlusN(2), heatPlusN(3)].filter(n => typeof n === 'number') as number[]
})
function heatPlusN (n: number) {
Expand Down

0 comments on commit aeb05aa

Please sign in to comment.