From 51d8d5ab6f4ebd1eaa7cf55f9e91989ae5da21fb Mon Sep 17 00:00:00 2001 From: swombat Date: Sat, 18 May 2024 07:50:09 +0100 Subject: [PATCH] Implementation of part 1 of https://github.com/bullet-train-co/bullet_train/issues/1451 --- .../app/views/themes/light/_box.html.erb | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/bullet_train-themes-light/app/views/themes/light/_box.html.erb b/bullet_train-themes-light/app/views/themes/light/_box.html.erb index f9ac441a0..519674f84 100644 --- a/bullet_train-themes-light/app/views/themes/light/_box.html.erb +++ b/bullet_train-themes-light/app/views/themes/light/_box.html.erb @@ -7,19 +7,21 @@ <% pagy ||= nil %>
overflow-hidden <%= border_top ? "border-t dark:border-slate-500" : "" %>"> -
- <% if partial.title? %> -

- <%= partial.title %> -

- <% end %> + <% if partial.title? || partial.description? %> +
+ <% if partial.title? %> +

+ <%= partial.title %> +

+ <% end %> - <% if partial.description? %> -

- <%= partial.description %> -

- <% end %> -
+ <% if partial.description? %> +

+ <%= partial.description %> +

+ <% end %> +
+ <% end %>
<% if partial.table? %>