fixed media
This commit is contained in:
parent
f40fd581b7
commit
1908c170d4
@ -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,
|
||||
|
@ -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) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user