summaryrefslogtreecommitdiffstats
path: root/app.rb
diff options
context:
space:
mode:
authorKen D'Ambrosio <ken@jots.org>2026-05-09 15:50:10 +0000
committerKen D'Ambrosio <ken@jots.org>2026-05-09 15:50:10 +0000
commitb1ffa9050e63329ac72cfc9cca5b44800984e34c (patch)
tree10eb3f4ec4eea219cbd4334b32414753fa572eca /app.rb
parent97a2456fdcda2f02f4b60a5610b1415ef07743df (diff)
Add info overlay to lightbox showing photo metadata
Tap "ℹ Info" in the caption bar to toggle a semi-transparent panel at the bottom of the image showing filename (if different from title), date taken, and pixel dimensions. Panel resets to hidden on each photo change. Button is hidden automatically when no metadata is available. Width/height are now included in the ENTRIES payload. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'app.rb')
-rw-r--r--app.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app.rb b/app.rb
index f58a99d..8667471 100644
--- a/app.rb
+++ b/app.rb
@@ -94,6 +94,8 @@ helpers do
visible: meta.fetch('visible', true),
type: media_type_for(name),
taken_at: meta['taken_at'],
+ width: meta['width'],
+ height: meta['height'],
}
end