fixed media

This commit is contained in:
mushka 2022-02-07 14:47:21 +03:00
parent f40fd581b7
commit 1908c170d4
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import PropTypes from "prop-types";
import React, { useState } from "react";
import Text from "../text";
import { isTablet } from "../utils/device";
import {
StyledSubmenu,
StyledSubmenuBottomLine,

View File

@ -1,5 +1,7 @@
import styled from "styled-components";
import { tablet } from "../utils/device";
export const StyledSubmenu = styled.div`
display: flex;
flex-direction: column;
@ -23,7 +25,10 @@ export const StyledSubmenuItems = styled.div`
display: flex;
flex-direction: row;
gap: 4px;
padding: ${(props) => (props.isTablet ? "16px" : "20px")};
padding: 20px;
@media ${tablet} {
padding: 16px;
}
`;
export const StyledSubmenuItem = styled.div.attrs((props) => ({