Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/nine-streets-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Comment thread
alexcarpenter marked this conversation as resolved.
2 changes: 1 addition & 1 deletion packages/swingset/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {
/* Shiki css-variables theme — dark code block regardless of page light/dark mode */
:root {
--shiki-foreground: #e2e8f0;
--shiki-background: #0d0d14;
--shiki-background: oklch(0.205 0 0);
--shiki-token-constant: #93c5fd;
--shiki-token-string: #86efac;
--shiki-token-comment: #64748b;
Expand Down
2 changes: 1 addition & 1 deletion packages/swingset/src/components/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function CodeBlock({ children, className }: CodeBlockProps) {
// safe: shiki output is developer-controlled source code
<div
dangerouslySetInnerHTML={{ __html: html }}
className='[&>pre]:overflow-auto [&>pre]:bg-transparent [&>pre]:p-4'
className='[&>pre]:bg-transparent! [&>pre]:overflow-auto [&>pre]:p-4'
/>
) : (
<pre className='overflow-auto p-4 text-[var(--shiki-foreground)]'>
Expand Down
2 changes: 1 addition & 1 deletion packages/swingset/src/components/DocsViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function DocsViewer({ slug }: DocsViewerProps) {
key={slug}
meta={meta}
>
<article className='prose relative mx-auto max-w-3xl p-8'>
<article className='prose relative mx-auto w-full min-w-0 max-w-3xl p-8'>
{meta?.source ? (
<div className='absolute right-8 top-8'>
<ViewSource source={meta.source} />
Expand Down
2 changes: 1 addition & 1 deletion packages/swingset/src/components/ui/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {
<main
data-slot='sidebar-inset'
className={cn(
'bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm',
'bg-background relative flex w-full min-w-0 flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm',
className,
)}
{...props}
Expand Down
Loading