Skip to content

Commit b557f1a

Browse files
committed
Improve padding in summary modal content
1 parent 1326fa6 commit b557f1a

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/components/resources/CodingWithAgents.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,12 @@ const CodingWithAgents = ({ manifest }: CodingWithAgentsProps) => {
284284
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-emerald-600" />
285285
</div>
286286
) : error ? (
287-
<div className="text-red-600 p-4 bg-red-50 rounded-lg">{error}</div>
287+
<div className="p-6">
288+
<div className="text-red-600 p-4 bg-red-50 rounded-lg">{error}</div>
289+
</div>
288290
) : summaryRef?.kind === 'series' && episodes.length > 0 ? (
289291
<div className="flex flex-col md:flex-row gap-6 min-h-0 flex-1 md:overflow-hidden">
290-
<aside className="md:w-64 md:flex-shrink-0 md:overflow-y-auto md:max-h-full">
292+
<aside className="md:w-64 md:flex-shrink-0 md:overflow-y-auto md:max-h-full p-6 pb-0 md:pr-0 md:pb-6">
291293
<div className="md:hidden mb-3">
292294
<CollapsibleButton
293295
label="Episodes"
@@ -309,7 +311,7 @@ const CodingWithAgents = ({ manifest }: CodingWithAgentsProps) => {
309311
/>
310312
</aside>
311313
<main
312-
className="relative flex-1 min-w-0 overflow-y-auto"
314+
className="relative flex-1 min-w-0 overflow-y-auto p-6 pt-0 md:pt-6 md:pl-0"
313315
aria-busy={isEpisodeLoading}
314316
>
315317
{isEpisodeLoading && (
@@ -321,7 +323,7 @@ const CodingWithAgents = ({ manifest }: CodingWithAgentsProps) => {
321323
</main>
322324
</div>
323325
) : (
324-
<div className="overflow-y-auto flex-1">
326+
<div className="overflow-y-auto flex-1 p-6">
325327
<MarkdownRenderer markdown={summaryContent} />
326328
</div>
327329
)}

src/components/resources/SummaryModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function SummaryModal({
129129
</button>
130130
</div>
131131

132-
<div className="px-6 py-6 flex-1 min-h-0 overflow-hidden flex flex-col">
132+
<div className="flex-1 min-h-0 overflow-hidden flex flex-col">
133133
{children}
134134
</div>
135135
</div>

0 commit comments

Comments
 (0)