Skip to content

Commit 2956116

Browse files
thomasahleclaude
andcommitted
Narrow mode: remove outer padding, restore panel borders
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cfbc937 commit 2956116

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
});
7474
</script>
7575
76-
<main class="h-dvh p-3 flex flex-col gap-[0.7rem] font-sans overflow-hidden">
76+
<main class="h-dvh p-3 flex flex-col gap-[0.7rem] font-sans overflow-hidden max-narrow:p-0 max-narrow:gap-0">
7777
<header class="bg-surface border border-border rounded-[14px] shadow-app flex flex-col">
7878
<!-- Row 1: title + utility buttons -->
7979
<div class="flex items-center justify-between px-4 py-[0.6rem]">

src/routes/lesson/[part]/[name]/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@
436436
437437
<section class="flex-1 min-h-0 flex max-narrow:flex-col">
438438
<article bind:this={lessonArticleEl} style="flex: 0 0 {hSplit}%; min-width: 200px"
439-
class="bg-surface border border-border rounded-[14px] shadow-app min-h-0 flex flex-col p-[0.9rem] gap-3 overflow-y-auto [scrollbar-gutter:stable] max-narrow:border-0 max-narrow:shadow-none max-narrow:rounded-none">
439+
class="bg-surface border border-border rounded-[14px] shadow-app min-h-0 flex flex-col p-[0.9rem] gap-3 overflow-y-auto [scrollbar-gutter:stable]">
440440
<h2 data-testid="lesson-title" class="m-0 text-[1.15rem] font-bold leading-tight text-foreground">{lesson.title}</h2>
441441
<div class="lesson-body">
442442
{@html lesson.html}
@@ -532,7 +532,7 @@
532532
533533
<!-- Editor pane -->
534534
<div style="flex: 0 0 {vSplit}%; min-height: 150px"
535-
class="bg-surface border border-border rounded-[14px] shadow-app min-h-0 overflow-hidden max-narrow:border-0 max-narrow:shadow-none max-narrow:rounded-none {splitView && canSplit ? 'flex flex-row' : 'grid grid-rows-[auto_1fr]'}">
535+
class="bg-surface border border-border rounded-[14px] shadow-app min-h-0 overflow-hidden {splitView && canSplit ? 'flex flex-row' : 'grid grid-rows-[auto_1fr]'}">
536536
537537
{#if splitView && canSplit}
538538
<!-- Split view: two editors side by side -->
@@ -627,7 +627,7 @@
627627
628628
<!-- Runtime pane -->
629629
<div style="flex: 1 1 0%; min-height: 220px"
630-
class="bg-surface border border-border rounded-[14px] shadow-app min-h-0 overflow-hidden flex flex-col max-narrow:border-0 max-narrow:shadow-none max-narrow:rounded-none">
630+
class="bg-surface border border-border rounded-[14px] shadow-app min-h-0 overflow-hidden flex flex-col">
631631
632632
<!-- Header: tab switcher + action buttons -->
633633
<div class="flex justify-between items-center gap-[0.7rem] px-[0.5rem] py-[0.35rem]">

0 commit comments

Comments
 (0)