Skip to content

Commit

Permalink
Slightly adjust table header padding
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Nov 17, 2024
1 parent 422143f commit bfd5528
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions website/src/components/TimetableDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useSessionStore } from '@/stores/session'
import { EntityType, useSettingsStore } from '@/stores/settings'
import { type MergedLesson, useTimetableStore } from '@/stores/timetable'
import { getCurrentDate, getCurrentDay, getIsWeekend, getWeekdays } from '@/utils/days'
import { localizeDay, localizeDate } from '@/utils/localization'
import { localizeDate, localizeDay } from '@/utils/localization'
import { getCurrentTime, lessonTimes } from '@/utils/times'
const { targetDay } = defineProps<{ targetDay?: number }>()
Expand Down Expand Up @@ -86,10 +86,13 @@ function filterForTargetDay(lessonsTime: MergedLesson[][]) {
<th
v-for="(date, index) in getWeekdays(getCurrentDate())"
:key="index"
:class="{ 'bg-surface-medium': index === currentDay && !isWeekend }"
:class="{
'bg-surface-medium': index === currentDay && !isWeekend,
'py-1': showDatesInTimetable,
}"
>
<span class="text-h6">{{ localizeDay(date) }}</span>
<div v-if="showDatesInTimetable" class="pb-2 opacity-70">{{ localizeDate(date) }}</div>
<div v-if="showDatesInTimetable" class="pb-1 opacity-70">{{ localizeDate(date) }}</div>
</th>
</tr>
</thead>
Expand Down

0 comments on commit bfd5528

Please sign in to comment.