Skip to content

Commit

Permalink
fix(color-modal): make dynamic all screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoaibdev7 committed Oct 9, 2024
1 parent 851bd3f commit 8f4b81b
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ColorPickerPopoverView } from './ColorPickerPopoverView'
import styled from 'styled-components'
import { colors } from '~/utils'
import { ColorPickerPopoverView } from './ColorPickerPopoverView'

type Props = {
isOpen: boolean
Expand Down Expand Up @@ -33,4 +33,24 @@ const ModalContent = styled.div`
z-index: 1001;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
@media (max-width: 1550px) {
top: 44%;
left: 38%;
}
@media (max-width: 1024px) {
top: 58%;
left: 56%;
}
@media (max-width: 768px) {
top: 50%;
left: 64%;
}
@media (max-width: 480px) {
top: 37%;
left: 76%;
}
`

0 comments on commit 8f4b81b

Please sign in to comment.