From 2de115d57b1551b2fa27b6c1633eab050e33b2d6 Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 23 Oct 2025 18:00:33 +0200 Subject: [PATCH] design(home) : better comment on padding --- .../android/features/home/impl/components/HomeTopBar.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/HomeTopBar.kt b/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/HomeTopBar.kt index e0b0f4c505..fc60ad063b 100644 --- a/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/HomeTopBar.kt +++ b/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/HomeTopBar.kt @@ -175,7 +175,10 @@ fun HomeTopBar( } } }, - // We need a 16dp left padding : 4dp default padding + 8dp IconButton padding + 4dp extra padding + // We want a 16dp left padding for the navigationIcon : + // 4dp from default TopAppBarHorizontalPadding + // 8dp from AccountIcon default padding (because of IconButton) + // 4dp extra padding using left insets windowInsets = WindowInsets(left = 4.dp), ) if (displayFilters) {