From 9f864ea108daf0b35e5c627c957a341ee7ac84d4 Mon Sep 17 00:00:00 2001 From: Sad Ellie Date: Thu, 21 Sep 2023 11:54:49 +0300 Subject: [PATCH] Remove draggable thingy from drawer so that scrim can be clicked properly --- .../sadellie/unitto/core/ui/common/UnittoNavigationDrawer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ui/src/main/java/com/sadellie/unitto/core/ui/common/UnittoNavigationDrawer.kt b/core/ui/src/main/java/com/sadellie/unitto/core/ui/common/UnittoNavigationDrawer.kt index c3a0fcd1..4dc68847 100644 --- a/core/ui/src/main/java/com/sadellie/unitto/core/ui/common/UnittoNavigationDrawer.kt +++ b/core/ui/src/main/java/com/sadellie/unitto/core/ui/common/UnittoNavigationDrawer.kt @@ -85,7 +85,7 @@ fun UnittoModalNavigationDrawer( orientation = Orientation.Horizontal, enabled = gesturesEnabled or state.isOpen, ) - .padding(end = 18.dp) // Draggable when closed + .padding(end = if (state.isOpen) 0.dp else 18.dp) // Draggable when closed ) { drawer() }