Commit d91224a64873777e3ea4bd8ec9f08b7ea3c4db62
ux: [ios] fix vertical space of peers row
David Gomez authored on 7/14/2020, 12:52:51 PMAndre Staltz committed on 8/21/2020, 11:59:18 AM
Parent: 4d515bba30e54fb80e0f9c002fbcdd94fe268eb0
Files changed
src/frontend/screens/central/connections-tab/view/Body/ListOfPeers.ts | changed |
src/frontend/screens/central/connections-tab/view/Body/ListOfPeers.ts | ||
---|---|---|
@@ -4,18 +4,25 @@ | ||
4 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | 6 | |
7 | 7 | import {Component} from 'react'; |
8 | -import {View, StyleSheet, StyleProp, ViewStyle, Animated} from 'react-native'; | |
8 | +import { | |
9 | + View, | |
10 | + StyleSheet, | |
11 | + StyleProp, | |
12 | + ViewStyle, | |
13 | + Animated, | |
14 | + Platform, | |
15 | +} from 'react-native'; | |
9 | 16 | import {h} from '@cycle/react'; |
10 | 17 | import {Dimensions} from '../../../../../global-styles/dimens'; |
11 | 18 | import {StagedPeerKV, PeerKV} from '../../../../../ssb/types'; |
12 | 19 | import PopList, {Props as PopListProps} from './PopList'; |
13 | 20 | import StagedItem, {Props as StagedItemProps} from './StagedItem'; |
14 | 21 | import RoomItem, {Props as RoomItemProps} from './RoomItem'; |
15 | 22 | import ConnectionItem from './ConnectionItem'; |
16 | 23 | |
17 | -const SHORT_ITEM_HEIGHT = 48; | |
24 | +const SHORT_ITEM_HEIGHT = Platform.OS === 'android' ? 48 : 50; | |
18 | 25 | const ITEM_HEIGHT = 70; |
19 | 26 | |
20 | 27 | export const styles = StyleSheet.create({ |
21 | 28 | container: { |
Built with git-ssb-web