Skip to content

Commit

Permalink
Merge pull request #831 from swombat/main
Browse files Browse the repository at this point in the history
Don't display header if no title or description
  • Loading branch information
jagthedrummer authored May 20, 2024
2 parents 715e803 + 51d8d5a commit b560683
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions bullet_train-themes-light/app/views/themes/light/_box.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@
<% pagy ||= nil %>

<div class="<%= "bg-white rounded-md shadow dark:bg-slate-700 dark:bg-opacity-50" unless no_background %> overflow-hidden <%= border_top ? "border-t dark:border-slate-500" : "" %>">
<div class="py-6 px-8 <%= title_padding %> space-y-2 <%= 'border-b shadow-sm dark:border-slate-600' if divider %>">
<% if partial.title? %>
<h2 class="text-xl font-semibold dark:text-white <%= title_size %>">
<%= partial.title %>
</h2>
<% end %>
<% if partial.title? || partial.description? %>
<div class="py-6 px-8 <%= title_padding %> space-y-2 <%= 'border-b shadow-sm dark:border-slate-600' if divider %>">
<% if partial.title? %>
<h2 class="text-xl font-semibold dark:text-white <%= title_size %>">
<%= partial.title %>
</h2>
<% end %>

<% if partial.description? %>
<p class="text-slate-400 font-light leading-normal">
<%= partial.description %>
</p>
<% end %>
</div>
<% if partial.description? %>
<p class="text-slate-400 font-light leading-normal">
<%= partial.description %>
</p>
<% end %>
</div>
<% end %>

<div class="space-y-4">
<% if partial.table? %>
Expand Down

0 comments on commit b560683

Please sign in to comment.