Jovan Petrovic 3 лет назад
Родитель
Сommit
2f280df1b6

+ 3
- 1
src/components/Buttons/PrimaryButton/PrimaryButton.styled.js Просмотреть файл

@@ -1,7 +1,9 @@
import { Button } from "@mui/material";
import styled from "styled-components";

export const ComponentContainer = styled.div``;
export const ComponentContainer = styled.div`
min-width: fit-content;
`;

export const PrimaryButtonStyled = styled(Button)`
background-color: ${props => props.variant === "contained" ? props.buttonColor : "transparent"};

+ 2
- 2
src/components/MUI/NavbarComponent.js Просмотреть файл

@@ -33,7 +33,7 @@ import PopoverComponent from "./PopoverComponent";
const NavbarComponent = () => {
const [openDrawer, setOpenDrawer] = useState(false);
const theme = useTheme();
const matches = useMediaQuery(theme.breakpoints.down("sm"));
const matches = useMediaQuery(theme.breakpoints.down("md"));

const handleToggleDrawer = () => {
setOpenDrawer(!openDrawer);
@@ -196,7 +196,7 @@ const NavbarComponent = () => {
fullWidth
endAdornment={<SearchIcon />}
size="small"
label="Pretražite proizvode"
label="Pretražite proizvode..."
id="fullWidth"
/>
<Box

+ 1
- 1
src/components/MUI/NavbarComponent.styled.js Просмотреть файл

@@ -10,7 +10,7 @@ export const SearchInput = styled(TextField)`
width: 36%;
}
@media (max-width: 900px) {
width: 27%;
width: 54%;
}
@media (max-width: 600px) {
width: 36%;

Загрузка…
Отмена
Сохранить