Skip to content

Commit 4ddbd38

Browse files
committed
Update AutoQuery.cshtml
1 parent 1dc0d76 commit 4ddbd38

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

MyApp/Pages/AutoQuery.cshtml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@
8686
<div class="ml-2 text-xs font-medium text-slate-500">Bookings.cs</div>
8787
</div>
8888
<!-- Code Block -->
89-
<div class="p-6 overflow-x-auto">
89+
<div class="overflow-x-auto">
9090
<!-- Added !bg-transparent to pre/code to prevent double background colors -->
91-
<pre class="!bg-transparent text-sm leading-6 text-slate-300 font-mono"><code><span class="text-yellow-300">[Route(</span><span class="text-green-300">"/bookings"</span><span class="text-yellow-300">)]</span>
91+
<pre class="!bg-transparent text-sm leading-6 text-slate-300 font-mono"><span class="text-slate-500"> // Create Queyrable APIs from just Request DTOs</span><code><span class="text-yellow-300">[Route(</span><span class="text-green-300">"/bookings"</span><span class="text-yellow-300">)]</span>
9292
<span class="text-purple-400">public class</span> <span class="text-yellow-300">SearchBookings</span> : <span class="text-blue-400">QueryDb</span>&lt;<span class="text-green-400">Booking</span>&gt;
9393
{
9494
<span class="text-purple-400">public</span> <span class="text-blue-400">string</span>? Name { <span class="text-purple-400">get</span>; <span class="text-purple-400">set</span>; }
@@ -191,6 +191,11 @@
191191

192192
@await Html.PartialAsync("VideoIncludes")
193193
@await Html.PartialAsync("HighlightIncludes")
194+
<style>
195+
pre, .hljs, .prose :where(pre):not(:where([class~="not-prose"] *)) .hljs {
196+
background-color: #0f172a !important;
197+
}
198+
</style>
194199

195200
@await Html.PartialAsync("VideoGroup", new Shared.VideoGroup {
196201
Title = "AutoQuery",

0 commit comments

Comments
 (0)