fix: Fix wrapping issue. use same styling as the page before
This commit is contained in:
parent
3c79e6ef37
commit
a2e7549ce2
|
@ -1,6 +1,7 @@
|
||||||
import { Text } from '@status-im/components'
|
import { Text } from '@status-im/components'
|
||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
import { Stack, YStack } from 'tamagui'
|
import { Stack, YStack } from 'tamagui'
|
||||||
|
import { useWindowSize } from '../../../hooks/useWindowSize'
|
||||||
|
|
||||||
type AdvisoriesContentProps = {
|
type AdvisoriesContentProps = {
|
||||||
title: string
|
title: string
|
||||||
|
@ -8,8 +9,9 @@ type AdvisoriesContentProps = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const AdvisoriesContent = ({ title, content }: AdvisoriesContentProps) => {
|
const AdvisoriesContent = ({ title, content }: AdvisoriesContentProps) => {
|
||||||
|
const windowSize = useWindowSize()
|
||||||
return (
|
return (
|
||||||
<YStack space={'$1'} style={{ width: '70%' }}>
|
<YStack space={'$1'} width={windowSize.width < 780 ? '100%' : '70%'}>
|
||||||
<Stack style={{ marginBottom: '5%' }}>
|
<Stack style={{ marginBottom: '5%' }}>
|
||||||
<Text size={27} weight={400}>
|
<Text size={27} weight={400}>
|
||||||
{title}
|
{title}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: auto;
|
|
||||||
}
|
}
|
||||||
.advisories-nav {
|
.advisories-nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -118,7 +118,7 @@ const ContinueButton = () => {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
justifyContent: isActivationValScreen
|
justifyContent: isActivationValScreen
|
||||||
? 'space-between'
|
? 'space-between'
|
||||||
: windowSize.width < 720
|
: windowSize.width < 560
|
||||||
? 'start'
|
? 'start'
|
||||||
: 'end',
|
: 'end',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
|
Loading…
Reference in New Issue