fix: Make links more accessible on helpcenter public views (#5681)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
<section class="bg-white lg:container w-full py-6 px-4 flex flex-col h-full">
|
<section class="bg-white lg:container w-full py-6 px-4 flex flex-col h-full">
|
||||||
<div class="flex justify-between items-center w-full">
|
<div class="flex justify-between items-center w-full">
|
||||||
<h3 class="text-xl text-slate-900 font-semibold subpixel-antialiased leading-relaxed hover:underline"">
|
<h3 class="text-xl text-slate-900 font-semibold subpixel-antialiased leading-relaxed hover:underline">
|
||||||
<a href="/hc/<%= portal.slug %>/<%= category.locale %>/<%= category.slug %>"><%= category.name %> </a>
|
<a href="/hc/<%= portal.slug %>/<%= category.locale %>/<%= category.slug %>">
|
||||||
|
<%= category.name %>
|
||||||
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
<span class="text-slate-500">
|
<span class="text-slate-500">
|
||||||
<%= category.articles.published.size %>
|
<%= category.articles.published.size %>
|
||||||
@@ -15,28 +17,27 @@
|
|||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% category.articles.published.take(5).each do |article| %>
|
<% category.articles.published.take(5).each do |article| %>
|
||||||
<div class="flex justify-between content-center my-1">
|
<a
|
||||||
<a
|
class="text-slate-800 hover:underline leading-8"
|
||||||
class="text-slate-800 hover:underline leading-8"
|
href="/hc/<%= portal.slug %>/<%= category.locale %>/<%= category.slug %>/<%= article.id %>"
|
||||||
href="/hc/<%= portal.slug %>/<%= category.locale %>/<%= category.slug %>/<%= article.id %>"
|
>
|
||||||
>
|
<div class="flex justify-between content-center my-1 -mx-1 p-1 rounded-lg hover:bg-slate-25">
|
||||||
<%= article.title %>
|
<%= article.title %>
|
||||||
</a>
|
<span class="flex items-center">
|
||||||
<span class="flex items-center">
|
<svg
|
||||||
<svg
|
class="w-4 h-4 fill-current text-slate-700"
|
||||||
class="w-4 h-4 fill-current text-slate-700"
|
width="24"
|
||||||
width="24"
|
height="24"
|
||||||
height="24"
|
fill="none"
|
||||||
fill="none"
|
viewBox="0 0 24 24"
|
||||||
viewBox="0 0 24 24"
|
xmlns="http://www.w3.org/2000/svg">
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
<path
|
||||||
>
|
d="M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0Z"
|
||||||
<path
|
/>
|
||||||
d="M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0Z"
|
</svg>
|
||||||
/>
|
</span>
|
||||||
</svg>
|
</div>
|
||||||
</span>
|
</a>
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user