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 384020624f7d1ccdbd695e498e8c2cc4d2c0097a..0b33b73357154c1e9790b7f97d0a7536eb032f3e 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))