Fix border on PostQuotes, add debug atom
This commit is contained in:
@@ -4,6 +4,11 @@ import * as tokens from '#/alf/tokens'
|
|||||||
import {native, web} from '#/alf/util/platform'
|
import {native, web} from '#/alf/util/platform'
|
||||||
|
|
||||||
export const atoms = {
|
export const atoms = {
|
||||||
|
debug: {
|
||||||
|
borderColor: 'red',
|
||||||
|
borderWidth: 1,
|
||||||
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Positioning
|
* Positioning
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import {isWeb} from 'platform/detection'
|
|||||||
import {PostQuotes as PostQuotesComponent} from '#/view/com/post-thread/PostQuotes'
|
import {PostQuotes as PostQuotesComponent} from '#/view/com/post-thread/PostQuotes'
|
||||||
import {ViewHeader} from '#/view/com/util/ViewHeader'
|
import {ViewHeader} from '#/view/com/util/ViewHeader'
|
||||||
import {CenteredView} from 'view/com/util/Views'
|
import {CenteredView} from 'view/com/util/Views'
|
||||||
import {atoms as a} from '#/alf'
|
import {native, web} from '#/alf'
|
||||||
import {ListHeaderDesktop} from '#/components/Lists'
|
import {ListHeaderDesktop} from '#/components/Lists'
|
||||||
|
|
||||||
type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostQuotes'>
|
type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostQuotes'>
|
||||||
@@ -27,7 +27,16 @@ export const PostQuotesScreen = ({route}: Props) => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CenteredView style={a.h_full_vh} sideBorders={true}>
|
<CenteredView
|
||||||
|
style={[
|
||||||
|
web({
|
||||||
|
minHeight: '100vh',
|
||||||
|
}),
|
||||||
|
native({
|
||||||
|
height: '100%',
|
||||||
|
}),
|
||||||
|
]}
|
||||||
|
sideBorders={true}>
|
||||||
<ListHeaderDesktop title={_(msg`Quotes`)} />
|
<ListHeaderDesktop title={_(msg`Quotes`)} />
|
||||||
<ViewHeader title={_(msg`Quotes`)} showBorder={!isWeb} />
|
<ViewHeader title={_(msg`Quotes`)} showBorder={!isWeb} />
|
||||||
<PostQuotesComponent uri={uri} />
|
<PostQuotesComponent uri={uri} />
|
||||||
|
|||||||
Reference in New Issue
Block a user