Fix minor list layout bugs (#1810)

* Fix accidental border on mobile

* Fix lists list to take full screen
zio/stable
dan 2023-11-06 17:15:01 +00:00 committed by GitHub
parent 95b5e642dc
commit 4c00fc576d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -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'},

View File

@ -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'

View File

@ -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>
) )
}), }),

View File

@ -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>
) )
}), }),