Skip to content

Commit 82957a5

Browse files
ofriwclaude
andcommitted
Maximize code area in presentation comparison slides
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7b6fb13 commit 82957a5

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

website/src/components/PresentationMode/RevealSlideshow.module.css

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,9 @@
131131
font-size: 0.65em;
132132
line-height: 1.3;
133133
margin: 0.5em auto 0 auto;
134-
max-width: var(--pres-component-max-width);
135134
border-radius: 6px;
136135
background: #1e1e1e;
137-
padding: 1em;
136+
padding: 0.75em;
138137
text-align: left;
139138
overflow-y: auto;
140139
overflow-x: auto;
@@ -158,14 +157,32 @@
158157
.comparison {
159158
display: grid;
160159
grid-template-columns: 1fr 1fr;
161-
gap: clamp(1em, 2vw, 1.5em);
160+
gap: clamp(0.75em, 1.5vw, 1.25em);
162161
margin: 1.5em auto 0.5em auto;
163-
max-width: var(--pres-component-max-width);
162+
max-width: 98%;
164163
flex: 1;
165164
min-height: 0;
166165
max-height: none;
167166
}
168167

168+
/* Code comparison specific overrides - tighter spacing for maximum code readability */
169+
.comparisonCode {
170+
gap: clamp(0.5em, 1vw, 0.85em);
171+
margin: 1em auto 0.5em auto;
172+
max-width: 99%;
173+
}
174+
175+
.comparisonCode .comparisonLeft,
176+
.comparisonCode .comparisonRight {
177+
padding: clamp(0.5em, 1vw, 0.75em);
178+
border-width: 1px;
179+
}
180+
181+
.comparisonCode .ineffective,
182+
.comparisonCode .effective {
183+
margin-bottom: 0.2em;
184+
}
185+
169186
.comparisonLeft,
170187
.comparisonRight {
171188
composes: gpuOptimized;

website/src/components/PresentationMode/RevealSlideshow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export default function RevealSlideshow({
291291
data-notes={formatSpeakerNotes(slide.speakerNotes)}
292292
>
293293
<h2>{slide.title}</h2>
294-
<div className={styles.comparison}>
294+
<div className={`${styles.comparison} ${styles.comparisonCode}`}>
295295
{slide.leftCode && (
296296
<div className={styles.comparisonLeft}>
297297
<h3 className={styles.ineffective}>{slide.leftCode.label}</h3>

0 commit comments

Comments
 (0)