Skip to content

Commit

Permalink
feat: banner position fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fairlighteth committed Dec 13, 2024
1 parent c45b37d commit 15d0f4c
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { isTruthy } from '@cowprotocol/common-utils'
import { TokensByAddress } from '@cowprotocol/tokens'
import { LpTokenProvider } from '@cowprotocol/types'

import styled from 'styled-components/macro'

import { upToSmall, useMediaQuery } from 'legacy/hooks/useMediaQuery'

import { VampireAttackContext } from 'modules/yield/types'
Expand All @@ -17,6 +19,10 @@ import { CoWAmmBannerContext } from './types'

import { useSafeMemoObject } from '../../hooks/useSafeMemo'

const Wrapper = styled.div`
z-index: 100;
`

interface CoWAmmBannerContentProps {
id: string
title: string
Expand Down Expand Up @@ -139,7 +145,7 @@ export function CoWAmmBannerContent({
)

return (
<div data-banner-id={id}>
<Wrapper data-banner-id={id}>
{isTokenSelectorView ? (
<TokenSelectorContent isDarkMode={isDarkMode} context={context}>
{Content}
Expand All @@ -159,6 +165,6 @@ export function CoWAmmBannerContent({
{Content}
</GlobalContent>
)}
</div>
</Wrapper>
)
}

0 comments on commit 15d0f4c

Please sign in to comment.