about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-17 17:20:56 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-17 17:20:56 -0400
commit293448fa36b0fc690671c9da440dd4dff22b9051 (patch)
tree1a0a08796c117826120ada9b1b483a74bd09ba7e
parent745b9e5485100c98cc73d1ff90661b43ade9404a (diff)
downloadthoughts-293448fa36b0fc690671c9da440dd4dff22b9051.tar.gz
thoughts-293448fa36b0fc690671c9da440dd4dff22b9051.tar.bz2
thoughts-293448fa36b0fc690671c9da440dd4dff22b9051.zip
Prettied up images sidebar in admin panel a bit
-rw-r--r--app/assets/stylesheets/admin/layout.scss1
-rw-r--r--app/views/admin/blogs/_form.html.haml2
2 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/stylesheets/admin/layout.scss b/app/assets/stylesheets/admin/layout.scss index 9585414..dbf84d2 100644 --- a/app/assets/stylesheets/admin/layout.scss +++ b/app/assets/stylesheets/admin/layout.scss
@@ -213,6 +213,7 @@ body {
213 pre { 213 pre {
214 overflow: auto; 214 overflow: auto;
215 max-width: 100%; 215 max-width: 100%;
216 padding-bottom: 1em;
216 } 217 }
217} 218}
218 219
diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml index c3720ba..f64ebe5 100644 --- a/app/views/admin/blogs/_form.html.haml +++ b/app/views/admin/blogs/_form.html.haml
@@ -44,7 +44,7 @@
44 - f.object.images.each do |image| 44 - f.object.images.each do |image|
45 = image_tag image.variant(:thumb) 45 = image_tag image.variant(:thumb)
46 = f.hidden_field :images, multiple: true, value: image.signed_id 46 = f.hidden_field :images, multiple: true, value: image.signed_id
47 %pre= url_for image 47 %pre= rails_blob_url(image)
48 %hr 48 %hr
49 = f.file_field :images, multiple: true 49 = f.file_field :images, multiple: true
50 .details-module= f.submit 50 .details-module= f.submit