From 979c262d87d11e741d8249360ea1e4a675346d6a Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Apr 2026 13:58:10 +0000 Subject: [PATCH] fix(desktop): drop 12dp border around single-pane content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SinglePaneLayout wrapped the main content area in `.padding(12.dp)`, leaving a visible strip of the window background around every screen. On macOS with the theming updates this strip became very noticeable: conversation list, chat content, and the NavigationRail no longer shared a single edge, and you could see `#F5F5F7` framing the whole content block. Native desktop apps don't frame content like that — padding is added inside cards / lists / dialogs, not around the window content area. Removing the wrapper padding lets the Messages two-column layout (surfaceContainer sidebar + surface chat) run edge-to-edge. https://claude.ai/code/session_01NufduPfZvYQVYwLkbCjCUo --- .../amethyst/desktop/ui/deck/SinglePaneLayout.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/desktopApp/src/jvmMain/kotlin/com/vitorpamplona/amethyst/desktop/ui/deck/SinglePaneLayout.kt b/desktopApp/src/jvmMain/kotlin/com/vitorpamplona/amethyst/desktop/ui/deck/SinglePaneLayout.kt index 52116250b..7f1c67b8d 100644 --- a/desktopApp/src/jvmMain/kotlin/com/vitorpamplona/amethyst/desktop/ui/deck/SinglePaneLayout.kt +++ b/desktopApp/src/jvmMain/kotlin/com/vitorpamplona/amethyst/desktop/ui/deck/SinglePaneLayout.kt @@ -181,9 +181,10 @@ fun SinglePaneLayout( } Column(modifier = Modifier.weight(1f).fillMaxHeight()) { - Box( - modifier = Modifier.fillMaxSize().padding(if (isImmersive) 0.dp else 12.dp), - ) { + // Content extends to the window edges; individual screens add their + // own internal padding where appropriate (Messages uses full-bleed + // panes to match native two-column chat apps). + Box(modifier = Modifier.fillMaxSize()) { // Always keep RootContent composed so state (e.g. search results) survives navigation RootContent( columnType = currentColumnType,