Skip to content

Commit

Permalink
Use full link to navigate to full Answer page
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 27, 2024
1 parent 6754cbc commit f4ba231
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MyApp/Components/Pages/Questions/LiveAnswers.razor
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="flex flex-wrap gap-x-2 gap-y-2">
@foreach (var tag in question.Post.Tags.Safe())
{
<a href="questions/tagged/@tag.UrlEncode()" class="inline-flex items-center rounded-md bg-blue-50 dark:bg-blue-900 hover:bg-blue-100 dark:hover:bg-blue-800 px-2 py-1 text-xs font-medium text-blue-700 dark:text-blue-200 ring-1 ring-inset ring-blue-700/10">@tag</a>
<NavLink href="questions/tagged/@tag.UrlEncode()" class="inline-flex items-center rounded-md bg-blue-50 dark:bg-blue-900 hover:bg-blue-100 dark:hover:bg-blue-800 px-2 py-1 text-xs font-medium text-blue-700 dark:text-blue-200 ring-1 ring-inset ring-blue-700/10">@tag</NavLink>
}
</div>
</div>
Expand Down Expand Up @@ -58,10 +58,10 @@
</p>
</div>
<p class="mt-3 md:ml-6 md:mt-0">
<NavLink href=@QuestionPath class="whitespace-nowrap font-medium text-blue-200 hover:text-blue-400">
<a href=@QuestionPath class="whitespace-nowrap font-medium text-blue-200 hover:text-blue-400">
full question page
<span aria-hidden="true"> &rarr;</span>
</NavLink>
</a>
</p>
</div>
</div>
Expand Down Expand Up @@ -105,12 +105,12 @@
@if (question.Answers.Count > 0)
{
<div class="my-16 flex justify-end">
<NavLink href=@QuestionPath>
<a href=@QuestionPath>
<div class="rounded-md py-2 pl-6 pr-2 shadow-lg bg-gray-800 text-white hover:bg-gray-900 text-2xl font-normal flex items-center">
Full Question Page
<svg class="w-10 h-10" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9.4 18L8 16.6l4.6-4.6L8 7.4L9.4 6l6 6Z"></path></svg>
</div>
</NavLink>
</a>
</div>
}
}
Expand Down

0 comments on commit f4ba231

Please sign in to comment.