summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-09 01:30:13 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-09 01:30:13 -0700
commitb4488a36db31a722ae054e076d459bd8c73a341b (patch)
tree43cf60d85c021271a5647485e7a0542b206196c4
parent0cc153bb699f0153ed42f619c4bca9820b49a49a (diff)
Fix star alignment in form heading
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--static/styles.css2
-rw-r--r--templates/form.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/static/styles.css b/static/styles.css
index 480ace0..288cde2 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -154,7 +154,7 @@ button:hover {
.form-heading {
display: flex;
- align-items: flex-end;
+ align-items: center;
justify-content: space-between;
padding: 48px 0 26px;
}
diff --git a/templates/form.html b/templates/form.html
index da76f66..62e020d 100644
--- a/templates/form.html
+++ b/templates/form.html
@@ -20,13 +20,13 @@
<form class="film-form" method="post" action="{{ action }}">
<input id="tmdb_id" name="tmdb_id" type="hidden" value="{{ film.tmdb_id if film and film.tmdb_id else '' }}">
+ {% set current_stars = film.stars if film and film.stars else 0 %}
+ <input type="hidden" id="stars" name="stars" value="{{ current_stars }}">
<div class="form-heading">
<div>
<p class="eyebrow">Diary Entry</p>
<h1>{{ page_title }}</h1>
</div>
- {% set current_stars = film.stars if film and film.stars else 0 %}
- <input type="hidden" id="stars" name="stars" value="{{ current_stars }}">
<div class="star-control" role="group" aria-label="Rate film" data-form-stars data-current-stars="{{ current_stars }}">
{% for value in range(1, 4) %}
<button