Commit b1da7d87 authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

fix: proposal creation layout on safari (#7203)

* fix: proposal creation layout on safari

* add important to header margin
parent a79324f2
...@@ -2,7 +2,6 @@ import { Trans } from '@lingui/macro' ...@@ -2,7 +2,6 @@ import { Trans } from '@lingui/macro'
import { Currency } from '@uniswap/sdk-core' import { Currency } from '@uniswap/sdk-core'
import AddressInputPanel from 'components/AddressInputPanel' import AddressInputPanel from 'components/AddressInputPanel'
import CurrencyInputPanel from 'components/CurrencyInputPanel' import CurrencyInputPanel from 'components/CurrencyInputPanel'
import React from 'react'
import styled from 'styled-components' import styled from 'styled-components'
import { ProposalAction } from './ProposalActionSelector' import { ProposalAction } from './ProposalActionSelector'
...@@ -13,10 +12,16 @@ enum ProposalActionDetailField { ...@@ -13,10 +12,16 @@ enum ProposalActionDetailField {
} }
const ProposalActionDetailContainer = styled.div` const ProposalActionDetailContainer = styled.div`
align-items: center;
display: flex;
flex-direction: column;
margin-top: 10px; margin-top: 10px;
display: grid; > * {
grid-template-columns: repeat(1, 1fr); width: 100%;
grid-gap: 10px; }
> :not(:last-child) {
margin-bottom: 10px;
}
` `
export const ProposalActionDetail = ({ export const ProposalActionDetail = ({
...@@ -74,8 +79,8 @@ export const ProposalActionDetail = ({ ...@@ -74,8 +79,8 @@ export const ProposalActionDetail = ({
showMaxButton={false} showMaxButton={false}
showCommonBases={false} showCommonBases={false}
showCurrencyAmount={false} showCurrencyAmount={false}
disableNonToken={true} disableNonToken
hideBalance={true} hideBalance
id="currency-input" id="currency-input"
/> />
) : null ) : null
......
...@@ -26,9 +26,10 @@ const ContentWrapper = styled(Column)` ...@@ -26,9 +26,10 @@ const ContentWrapper = styled(Column)`
position: relative; position: relative;
` `
const ActionSelectorHeader = styled.div` const ActionSelectorHeader = styled.div`
color: ${({ theme }) => theme.textSecondary};
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: ${({ theme }) => theme.textSecondary}; margin-bottom: 10px;
` `
const ActionDropdown = styled(ButtonDropdown)` const ActionDropdown = styled(ButtonDropdown)`
...@@ -56,11 +57,11 @@ const ProposalActionSelectorFlex = styled.div` ...@@ -56,11 +57,11 @@ const ProposalActionSelectorFlex = styled.div`
` `
const ProposalActionSelectorContainer = styled.div` const ProposalActionSelectorContainer = styled.div`
display: flex;
flex: 1; flex: 1;
padding: 1rem; justify-content: flex-start;
display: grid; flex-direction: column;
grid-auto-rows: auto; padding: 1em;
grid-row-gap: 10px;
` `
export const ProposalActionSelector = ({ export const ProposalActionSelector = ({
......
...@@ -59,6 +59,10 @@ const Nav = styled(Link)` ...@@ -59,6 +59,10 @@ const Nav = styled(Link)`
text-decoration: none; text-decoration: none;
` `
const HeaderText = styled(ThemedText.SubHeaderLarge)`
margin: auto !important;
`
const CreateProposalButton = ({ const CreateProposalButton = ({
proposalThreshold, proposalThreshold,
hasActiveOrPendingProposal, hasActiveOrPendingProposal,
...@@ -258,7 +262,7 @@ ${bodyValue} ...@@ -258,7 +262,7 @@ ${bodyValue}
<AppBody $maxWidth="800px"> <AppBody $maxWidth="800px">
<Nav to="/vote"> <Nav to="/vote">
<BackArrow /> <BackArrow />
<ThemedText.SubHeaderLarge>Create Proposal</ThemedText.SubHeaderLarge> <HeaderText>Create Proposal</HeaderText>
</Nav> </Nav>
<CreateProposalWrapper> <CreateProposalWrapper>
<BlueCard> <BlueCard>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment