Fix minor list layout bugs (#1810)
* Fix accidental border on mobile * Fix lists list to take full screenzio/stable
parent
95b5e642dc
commit
4c00fc576d
|
@ -164,6 +164,7 @@ export const s = StyleSheet.create({
|
||||||
flexRow: {flexDirection: 'row'},
|
flexRow: {flexDirection: 'row'},
|
||||||
flexCol: {flexDirection: 'column'},
|
flexCol: {flexDirection: 'column'},
|
||||||
flex1: {flex: 1},
|
flex1: {flex: 1},
|
||||||
|
flexGrow1: {flexGrow: 1},
|
||||||
alignCenter: {alignItems: 'center'},
|
alignCenter: {alignItems: 'center'},
|
||||||
alignBaseline: {alignItems: 'baseline'},
|
alignBaseline: {alignItems: 'baseline'},
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ import {Text} from '../util/text/Text'
|
||||||
import {ListsListModel} from 'state/models/lists/lists-list'
|
import {ListsListModel} from 'state/models/lists/lists-list'
|
||||||
import {useAnalytics} from 'lib/analytics/analytics'
|
import {useAnalytics} from 'lib/analytics/analytics'
|
||||||
import {usePalette} from 'lib/hooks/usePalette'
|
import {usePalette} from 'lib/hooks/usePalette'
|
||||||
import {FlatList} from '../util/Views.web'
|
import {FlatList} from '../util/Views'
|
||||||
import {s} from 'lib/styles'
|
import {s} from 'lib/styles'
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ export const ListsScreen = withAuthRequired(
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
</SimpleViewHeader>
|
</SimpleViewHeader>
|
||||||
<ListsList listsList={listsLists} />
|
<ListsList listsList={listsLists} style={s.flexGrow1} />
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -85,7 +85,7 @@ export const ModerationModlistsScreen = withAuthRequired(
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
</SimpleViewHeader>
|
</SimpleViewHeader>
|
||||||
<ListsList listsList={mutelists} />
|
<ListsList listsList={mutelists} style={s.flexGrow1} />
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue