Skip to content

Commit

Permalink
fix: Improve NavButton
Browse files Browse the repository at this point in the history
  • Loading branch information
Melichka committed Sep 2, 2024
1 parent 4e8153c commit 69e15fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ export const StyledBreadcrumb = styled(Chip)(({ theme }) => {
backgroundColor,
height: theme.spacing(3),
color: theme.palette.text.primary,
fontWeight: theme.typography.fontWeightRegular,
fontWeight: 400,
fontSize: "13px",
alignItems: "center",
justifyContent: "center",
display: "inline-flex",
whiteSpace: "nowrap",
padding: "4px 12px 4px 8px",
gap: "4px",

maxWidth: "fit-content",
"&:hover, &:focus": {
backgroundColor: emphasize(backgroundColor, 0.06),
Expand Down
8 changes: 4 additions & 4 deletions application/frontend/src/pages/project/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ export const ProjectPage: React.FC = () => {

return (
<Container>
<NavButton to="/" icon={<HomeIcon fontSize="small" />}>
Home
<NavButton to="/projects" icon={<HomeIcon fontSize="small" />}>
Список проектов
</NavButton>
<HeaderSection>
<TitleSection>
<img src={settings} alt="Settings" style={{ width: 40, height: 40 }} />
<StyledTitle>Список проектов</StyledTitle>
</TitleSection>

<CreateProjectContainer>
{/* <CreateProjectContainer>
<CreateProjectButton onClick={() => console.log("Create Project")} />
</CreateProjectContainer>
</CreateProjectContainer> */}
</HeaderSection>
<SearchBar
searchQuery={searchQuery}
Expand Down

0 comments on commit 69e15fc

Please sign in to comment.