diff options
| -rw-r--r-- | drafts/schedule-card-1102.png | bin | 1825808 -> 1823716 bytes | |||
| -rw-r--r-- | src/components/ScheduleInteractive.astro | 6 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drafts/schedule-card-1102.png b/drafts/schedule-card-1102.png Binary files differindex 2ef42ff..905bdfd 100644 --- a/drafts/schedule-card-1102.png +++ b/drafts/schedule-card-1102.png diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index 4e1894b..5f33c8f 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -325,7 +325,11 @@ <button type="button" class="schedule-cal-nav" data-dir="-1" aria-label="前の月" ${index <= 0 ? 'disabled' : ''}>‹</button> <div class="schedule-cal-mid"> <div class="schedule-cal-title">${year}年${month}月</div> - <button type="button" class="schedule-cal-today" aria-label="今日を選ぶ">今日</button> + ${ + selectedDate === todayKey + ? '' + : '<button type="button" class="schedule-cal-today" aria-label="今日に戻る">今日に戻る</button>' + } </div> <button type="button" class="schedule-cal-nav" data-dir="1" aria-label="次の月" ${index >= months.length - 1 ? 'disabled' : ''}>›</button> </div> |
