aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi/whisky-shelf.cgi4
-rw-r--r--static/styles.css2
2 files changed, 3 insertions, 3 deletions
diff --git a/cgi/whisky-shelf.cgi b/cgi/whisky-shelf.cgi
index 149dd70..79e2b70 100644
--- a/cgi/whisky-shelf.cgi
+++ b/cgi/whisky-shelf.cgi
@@ -2,7 +2,7 @@ require "json"
def shelf_contents(data)
data.map { |bottle|
- $cgi.div {
+ $cgi.div(class: "shelf") {
$cgi.h3 { bottle["name"] } +
$cgi.img(class: "bottle",
src: "shelf/#{bottle["image"]}")
@@ -15,7 +15,7 @@ data = JSON.parse(File.read("../inc/shelf.json"))
$page =
$cgi.div {
$cgi.h2 { "What's on my shelf?" } +
- $cgi.div(class: "shelf") { shelf_contents(data) }
+ $cgi.div { shelf_contents(data) }
}
# vim: set filetype=ruby:
diff --git a/static/styles.css b/static/styles.css
index b4e5f7c..0395bb4 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -31,7 +31,7 @@ div {
}
div#shelf {
- display: flex;
+ display: inline-block;
}
img.bottle {