fix: Fix rendering issues in Help Center (#7042)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<header class="bg-white mx-auto px-4 max-w-5xl w-full">
|
||||
<nav class="px-0 flex" aria-label="Top">
|
||||
<div class="w-full py-8 flex items-center">
|
||||
<a href="/hc/<%= @portal.slug %>/<%= params[:locale] %>/" class="text-base font-semibold">
|
||||
<a href="/hc/<%= @portal.slug %>/<%= @portal.config['default_locale'] || params[:locale] %>/" class="text-base font-semibold">
|
||||
<%= @portal.name %>
|
||||
</a>
|
||||
<% if @portal.homepage_link %>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-x-32 gap-y-0 lg:gap-y-12">
|
||||
<% if @portal.articles.where(status: :published, category_id: nil).order(position: :asc) %>
|
||||
<% if @portal.articles.where(status: :published, category_id: nil).count > 0 %>
|
||||
<%= render "public/api/v1/portals/uncategorized-block", category: "Uncategorized", portal: @portal %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user