From 4608b8abe780d42572cf351937f4b25fa7248f44 Mon Sep 17 00:00:00 2001
From: Paul Lorenc <pj@paul-lorenc.com>
Date: Sat, 25 Sep 2021 10:57:09 -0400
Subject: [PATCH] fix scrim coverage

---
 .../briar/desktop/paul/views/PrivateMessageView.kt           | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/kotlin/org/briarproject/briar/desktop/paul/views/PrivateMessageView.kt b/src/main/kotlin/org/briarproject/briar/desktop/paul/views/PrivateMessageView.kt
index 384020624f..0b33b73357 100644
--- a/src/main/kotlin/org/briarproject/briar/desktop/paul/views/PrivateMessageView.kt
+++ b/src/main/kotlin/org/briarproject/briar/desktop/paul/views/PrivateMessageView.kt
@@ -693,9 +693,8 @@ fun DrawMessageRow(
         )
         if (infoDrawer) {
             // TODO Find non-hacky way of setting scrim on entire app
-            // Currently this dims the message view while the drawer is open by making a very very large slightly
-            // see-through black box
-            Box(Modifier.requiredSize(maxWidth, maxHeight).background(Color(0, 0, 0, 100)))
+            // We're able to make this work because the ContactList and BriarSidebar have constant widths which add to 302.dp
+            Box(Modifier.offset(-302.dp).requiredSize(maxWidth + 302.dp, maxHeight).background(Color(0, 0, 0, 100)))
             Column(
                 modifier = Modifier.fillMaxHeight().width(275.dp).offset(maxWidth + animatedInfoDrawerOffsetX)
                     .background(briarBlack, RoundedCornerShape(topStart = 10.dp, bottomStart = 10.dp))
-- 
GitLab