diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-02 09:24:18 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-02 09:24:18 +0900 |
| commit | e26ba791f70da9e5567f4a6a9042434419582e19 (patch) | |
| tree | 9364c80bbb540ee5b113b053a04dec7b1b417a8c /src/components | |
| parent | c17312b14977cb8fb032e5f394a64aa0327abef2 (diff) | |
hp-archive: 「今日に戻る」ボタンを今日以外を選んだときだけ表示
- 今日が選択されているときはボタンを出さない
- ラベルを「今日に戻る」に変更
- X投稿用の画像を作り直し
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ScheduleInteractive.astro | 6 |
1 files changed, 5 insertions, 1 deletions
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> |
