summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/templates/partials/timeline-tab.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/web/templates/partials/timeline-tab.html b/web/templates/partials/timeline-tab.html
index 4979744..c82513d 100644
--- a/web/templates/partials/timeline-tab.html
+++ b/web/templates/partials/timeline-tab.html
@@ -113,8 +113,7 @@
hx-target="#tab-content"
hx-swap="innerHTML">
- <!-- Today Section (Calendar View) -->
- {{if .TodayItems}}
+ <!-- Today Section (Calendar View) — always shown so the NOW line is visible -->
<details class="group" open>
<summary class="text-lg font-semibold mb-3 flex items-center gap-2 text-white/90 cursor-pointer hover:text-white sticky top-0 bg-black/20 backdrop-blur-md py-2 z-10 rounded-lg px-2 list-none">
<span>📅</span> {{.TodayLabel}}
@@ -125,6 +124,8 @@
</summary>
<!-- Overdue + All-Day + Untimed Items Section -->
+ {{$hasUntimed := false}}{{range .TodayItems}}{{if or .IsOverdue .IsAllDay}}{{$hasUntimed = true}}{{end}}{{end}}
+ {{if $hasUntimed}}
<div class="mb-4 flex flex-wrap gap-1 p-2 bg-black/20 rounded-lg" id="untimed-section">
{{range .TodayItems}}
{{if or .IsOverdue .IsAllDay}}
@@ -151,6 +152,7 @@
{{end}}
{{end}}
</div>
+ {{end}}
<!-- Calendar Grid (dynamic hours) -->
<div class="calendar-grid" id="today-calendar" data-start-hour="{{.TodayStartHour}}" data-now-hour="{{.NowHour}}" data-now-minute="{{.NowMinute}}">
@@ -200,7 +202,6 @@
</div>
</details>
- {{end}}
<!-- Tomorrow Section (Calendar View) -->
{{if .TomorrowItems}}
@@ -305,7 +306,7 @@
</details>
{{end}}
- {{if and (not .TodayItems) (not .TomorrowItems) (not .LaterItems)}}
+ {{if and (not .TomorrowItems) (not .LaterItems)}}
<div class="text-center py-8 text-white/50">
<p>No items found for the selected range.</p>
</div>