From 293448fa36b0fc690671c9da440dd4dff22b9051 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 17 Oct 2023 17:20:56 -0400 Subject: Prettied up images sidebar in admin panel a bit --- app/assets/stylesheets/admin/layout.scss | 1 + app/views/admin/blogs/_form.html.haml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'app') 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 { pre { overflow: auto; max-width: 100%; + padding-bottom: 1em; } } 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 @@ - f.object.images.each do |image| = image_tag image.variant(:thumb) = f.hidden_field :images, multiple: true, value: image.signed_id - %pre= url_for image + %pre= rails_blob_url(image) %hr = f.file_field :images, multiple: true .details-module= f.submit -- cgit 1.4.1