diff --git a/shiftregister/app/templates/shiftlist.html b/shiftregister/app/templates/shiftlist.html
index 690269b..68457dc 100644
--- a/shiftregister/app/templates/shiftlist.html
+++ b/shiftregister/app/templates/shiftlist.html
@@ -20,8 +20,8 @@
{% endif %}
{% if free_shifts %}
Freie Schichten
-
-
+
{% for shifts in free_shifts %}
-{{ shifts.0.start_at|date:"l" }}
+
+{{ shifts.0.start_at|date:"l" }}
{% for shift in shifts %}
{% include "partials/shift_listitem.html" %}
diff --git a/shiftregister/core/templates/base.html b/shiftregister/core/templates/base.html
index 5d78e72..e4237f1 100644
--- a/shiftregister/core/templates/base.html
+++ b/shiftregister/core/templates/base.html
@@ -27,6 +27,24 @@
--background: #fff;
}
+ .sticky-nav {
+ background-color: var(--background);
+ margin: 0 -0.75rem;
+ overflow-x: auto;
+ padding: 1em 0.75rem;
+ position: sticky;
+ top: 0;
+ z-index: 42;
+ }
+
+ .sticky-target {
+ display: block;
+ height: 0;
+ position: relative;
+ top: -3.5em;
+ width: 0;
+ }
+
@media (prefers-color-scheme: dark) {
:root {
--background: #17181c;