mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Typo and minor formatting
This commit is contained in:
+7
-8
@@ -131,14 +131,13 @@ fun ConfigureRoomView(
|
|||||||
if (state.config.invites.isNotEmpty()) {
|
if (state.config.invites.isNotEmpty()) {
|
||||||
SelectedUsersList(
|
SelectedUsersList(
|
||||||
modifier = Modifier.padding(bottom = 16.dp),
|
modifier = Modifier.padding(bottom = 16.dp),
|
||||||
contentPadding = PaddingValues(horizontal = 24.dp),
|
contentPadding = PaddingValues(horizontal = 24.dp),
|
||||||
selectedUsers = state.config.invites,
|
selectedUsers = state.config.invites,
|
||||||
onUserRemoved = {
|
onUserRemoved = {
|
||||||
focusManager.clearFocus()
|
focusManager.clearFocus()
|
||||||
state.eventSink(ConfigureRoomEvents.RemoveFromSelection(it))
|
state.eventSink(ConfigureRoomEvents.RemoveFromSelection(it))
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
RoomPrivacyOptions(
|
RoomPrivacyOptions(
|
||||||
modifier = Modifier.padding(bottom = 40.dp),
|
modifier = Modifier.padding(bottom = 40.dp),
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,7 @@ fun SelectedUsersList(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Calculate spacing to show between each user. This is at least [minimumSpacing], and will grow to ensure that if the available space is filled with
|
// Calculate spacing to show between each user. This is at least [minimumSpacing], and will grow to ensure that if the available space is filled with
|
||||||
// users, the last visible user will be precisely visible. This gives an obvious affordance that there are more entries and the list cna be scrolled.
|
// users, the last visible user will be precisely half visible. This gives an obvious affordance that there are more entries and the list can be scrolled.
|
||||||
// For efficiency, we assume that all the children are the same width. If they needed to be different sizes we'd have to do this calculation each time
|
// For efficiency, we assume that all the children are the same width. If they needed to be different sizes we'd have to do this calculation each time
|
||||||
// they needed to be measured.
|
// they needed to be measured.
|
||||||
val minimumSpacing = with(LocalDensity.current) { 24.dp.toPx() }
|
val minimumSpacing = with(LocalDensity.current) { 24.dp.toPx() }
|
||||||
|
|||||||
Reference in New Issue
Block a user