Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelstianko committed Feb 24, 2024
1 parent 5e75275 commit 7b9f1a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/api-section.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
class="inline-flex h-[29px] items-center justify-center rounded-button bg-accent px-3 font-mono text-[17px] font-medium leading-tight tracking-tight dark:text-neutral-900"
>
<h3>
<span class="text-muted-foreground dark:text-neutral-900/40">{$page.data.title.replaceAll(" ", "")}.</span
<span class="text-muted-foreground dark:text-neutral-900/40"
>{$page.data.title.replaceAll(" ", "")}.</span
>{schema.title}
</h3>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/components/markdown/pre.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
</script>

<pre
class={cn("mb-4 mt-6 overflow-x-auto rounded-card border-2 border-muted py-8 relative", className)}
class={cn(
"relative mb-4 mt-6 overflow-x-auto rounded-card border-2 border-muted py-8",
className
)}
use:setCodeString
{...$$restProps}>
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/styles/markdown.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
}

[data-rehype-pretty-code-title] {
@apply mt-4 px-4 py-4 text-sm font-medium bg-muted rounded-t-xl text-foreground/70;
@apply mt-4 rounded-t-xl bg-muted px-4 py-4 text-sm font-medium text-foreground/70;
}

[data-rehype-pretty-code-title] + pre {
Expand Down

0 comments on commit 7b9f1a9

Please sign in to comment.