mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 15:45:11 +00:00
Address search PR review comments
- Drop the redundant searchService coordinator/view model parameter; derive it from the client proxy. - Rename the globalSearch avatar size to search. - Lift the query observation streams out of their tasks. - Restore the appeared and updateVisibleRange comments. - Use CompoundIcon defaults and a scaledFrame for media previews. - Simplify the result mapping with compactMap(makeResult) and drop unsupported events by returning nil. - Move the preview helpers beneath the previews.
This commit is contained in:
@@ -87,7 +87,7 @@ enum UserAvatarSizeOnScreen {
|
||||
case threadSummary
|
||||
case map
|
||||
case classicAppAccount
|
||||
case globalSearch
|
||||
case search
|
||||
|
||||
var value: CGFloat {
|
||||
switch self {
|
||||
@@ -108,7 +108,7 @@ enum UserAvatarSizeOnScreen {
|
||||
case .roomDetails:
|
||||
44
|
||||
case .inviteUsers, .knockingUserList, .sessionVerification,
|
||||
.settings, .threadList, .mediaPreviewDetails, .globalSearch:
|
||||
.settings, .threadList, .mediaPreviewDetails, .search:
|
||||
52
|
||||
case .roomChangeRoles:
|
||||
56
|
||||
@@ -131,7 +131,7 @@ enum RoomAvatarSizeOnScreen {
|
||||
case timeline
|
||||
case leaveSpace
|
||||
case messageForwarding
|
||||
case globalSearch
|
||||
case search
|
||||
case roomSelection
|
||||
case details
|
||||
case editRoomDetails
|
||||
@@ -155,7 +155,7 @@ enum RoomAvatarSizeOnScreen {
|
||||
.spaceAddRooms:
|
||||
36
|
||||
case .chats, .spaces, .spaceSettings,
|
||||
.spaceAddRoomsSelected, .globalSearch:
|
||||
.spaceAddRoomsSelected, .search:
|
||||
52
|
||||
case .joinRoom, .spaceHeader, .editSpaceDetails:
|
||||
64
|
||||
|
||||
Reference in New Issue
Block a user