Add borders around starter pack landing page when tablet or deskto (#4626)
parent
59fa7c0c0d
commit
dc9e51dca1
|
@ -231,14 +231,21 @@ function LandingScreenLoaded({
|
||||||
</Trans>
|
</Trans>
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
<View>
|
<View
|
||||||
{starterPack.listItemsSample?.slice(0, 8).map(item => (
|
style={
|
||||||
|
isTabletOrDesktop && [
|
||||||
|
a.border,
|
||||||
|
a.rounded_md,
|
||||||
|
t.atoms.border_contrast_low,
|
||||||
|
]
|
||||||
|
}>
|
||||||
|
{starterPack.listItemsSample?.slice(0, 8).map((item, i) => (
|
||||||
<View
|
<View
|
||||||
key={item.subject.did}
|
key={item.subject.did}
|
||||||
style={[
|
style={[
|
||||||
a.py_lg,
|
a.py_lg,
|
||||||
a.px_md,
|
a.px_md,
|
||||||
a.border_t,
|
(!isTabletOrDesktop || i !== 0) && a.border_t,
|
||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
{pointerEvents: 'none'},
|
{pointerEvents: 'none'},
|
||||||
]}>
|
]}>
|
||||||
|
@ -257,13 +264,21 @@ function LandingScreenLoaded({
|
||||||
<Trans>You'll stay updated with these feeds</Trans>
|
<Trans>You'll stay updated with these feeds</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<View style={[{pointerEvents: 'none'}]}>
|
<View
|
||||||
{feeds?.map(feed => (
|
style={[
|
||||||
|
{pointerEvents: 'none'},
|
||||||
|
isTabletOrDesktop && [
|
||||||
|
a.border,
|
||||||
|
a.rounded_md,
|
||||||
|
t.atoms.border_contrast_low,
|
||||||
|
],
|
||||||
|
]}>
|
||||||
|
{feeds?.map((feed, i) => (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.py_lg,
|
a.py_lg,
|
||||||
a.px_md,
|
a.px_md,
|
||||||
a.border_t,
|
(!isTabletOrDesktop || i !== 0) && a.border_t,
|
||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
]}
|
]}
|
||||||
key={feed.uri}>
|
key={feed.uri}>
|
||||||
|
|
Loading…
Reference in New Issue