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
24 changes: 12 additions & 12 deletions packages/session-ui/src/components/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,26 @@
font-size: 17px;
color: var(--v2-text-text-base);
font-weight: 600;
margin-top: 0px;
margin-bottom: 24px;
margin-top: 28px;
margin-bottom: 12px;
line-height: var(--line-height-large);
}

h2 {
font-size: 15px;
color: var(--v2-text-text-base);
font-weight: 600;
margin-top: 0px;
margin-bottom: 24px;
margin-top: 24px;
margin-bottom: 10px;
line-height: var(--line-height-large);
}

h3 {
font-size: 13px;
color: var(--v2-text-text-base);
font-weight: var(--font-weight-medium);
margin-top: 0px;
margin-bottom: 24px;
margin-top: 20px;
margin-bottom: 8px;
line-height: var(--line-height-large);
}

Expand All @@ -64,8 +64,8 @@
font-size: 13px;
color: var(--v2-text-text-muted);
font-weight: var(--font-weight-medium);
margin-top: 0px;
margin-bottom: 24px;
margin-top: 20px;
margin-bottom: 8px;
line-height: var(--line-height-large);
}

Expand Down Expand Up @@ -145,7 +145,7 @@
/* Blockquotes */
blockquote {
border-left: 0.5px solid var(--v2-border-border-base);
margin: 1.5rem 0;
margin: 1rem 0;
padding-left: 0.5rem;
color: var(--v2-text-text-muted);
font-style: normal;
Expand All @@ -155,7 +155,7 @@
hr {
border: none;
height: 0;
margin: 40px 0;
margin: 32px 0;
}

.shiki {
Expand Down Expand Up @@ -256,7 +256,7 @@

pre {
margin-top: 12px;
margin-bottom: 32px;
margin-bottom: 24px;
overflow: auto;

scrollbar-width: none;
Expand Down Expand Up @@ -296,7 +296,7 @@
table {
width: 100%;
border-collapse: collapse;
margin: 24px 0;
margin: 16px 0;
font-size: var(--font-size-base);
display: block;
overflow-x: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,9 @@ function Playground() {
message: { [session().id]: state.messages },
part: state.parts,
provider: {
all: [{ id: "anthropic", models: { "claude-sonnet-4-20250514": { name: "Claude Sonnet" } } }],
all: new Map([["anthropic", { id: "anthropic", models: { "claude-sonnet-4-20250514": { name: "Claude Sonnet" } } }]]),
connected: ["anthropic"],
default: {},
},
}))

Expand Down
12 changes: 12 additions & 0 deletions packages/storybook/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ const Scheme = (props: { value?: unknown }) => {
return null
}

const NewLayout = () => {
// Mirror app.tsx BodyDesignClass so stories render with v2 (new-layout) styles
// instead of the legacy `body:not([data-new-layout])` branch.
onMount(() => {
document.body.toggleAttribute("data-new-layout", true)
document.body.classList.add("font-(family-name:--font-family-text)", "text-[13px]", "font-[440]")
document.body.classList.remove("text-12-regular")
})
return null
}

const frame = createJSXDecorator((Story, context) => {
const override = context.parameters?.themes?.themeOverride
const selected = context.globals?.theme
Expand All @@ -54,6 +65,7 @@ const frame = createJSXDecorator((Story, context) => {
<Font />
<ThemeProvider>
<Scheme value={scheme} />
<NewLayout />
<DialogProvider>
<MarkedProvider>
<div
Expand Down
Loading