Skip to content

Commit

Permalink
uified styles with the logo and adjust the search and button group el…
Browse files Browse the repository at this point in the history
…ements on mobile
  • Loading branch information
OlegMoshkovich committed Oct 8, 2023
1 parent f53754e commit d4a1956
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
31 changes: 9 additions & 22 deletions src/Components/Logo.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import Box from '@mui/material/Box'
import Paper from '@mui/material/Paper'
import useTheme from '@mui/styles/useTheme'
import {TooltipIconButton} from './Buttons'
import LogoIcon from '../assets/LogoB.svg'
Expand All @@ -13,27 +13,14 @@ import PkgJson from '../../package.json'
export default function Logo({onClick}) {
const theme = useTheme()
return (
<Box
<Paper
elevation={2}
sx={{
'position': 'fixed',
'bottom': '1em',
'left': '1em',
'& svg': {
'marginBottom': '4px',
'marginTop': '4px',
'@media (max-width: 900px)': {
width: '40px',
},
'& .left-face': {
fill: theme.palette.secondary.background,
},
'& .right-face': {
fill: theme.palette.secondary.main,
},
'& #logo path': {
stroke: theme.palette.primary.main,
},
},
position: 'fixed',
bottom: '1em',
left: '1em',
boxShadow: theme.shadows[1],
background: theme.palette.scene.background

Check failure on line 23 in src/Components/Logo.jsx

View workflow job for this annotation

GitHub Actions / build

Missing trailing comma
}}
>
<TooltipIconButton
Expand All @@ -43,6 +30,6 @@ export default function Logo({onClick}) {
onClick={onClick}
aboutInfo={false}
/>
</Box>
</Paper>
)
}
2 changes: 1 addition & 1 deletion src/Components/OperationsGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function OperationsGroup({deselectItems}) {

const theme = useTheme()
return (
<ButtonGroup orientation='vertical' variant='contained' sx={{margin: '1em'}}>
<ButtonGroup orientation='vertical' sx={{margin: '1em .5em'}}>
{isLoginVisible &&
<AuthNav/>
}
Expand Down
2 changes: 1 addition & 1 deletion src/Containers/CadView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ export default function CadView({

const windowDimensions = useWindowDimensions()
const spacingBetweenSearchAndOpsGroupPx = 20
const operationsGroupWidthPx = 60
const operationsGroupWidthPx = 100
const searchAndNavWidthPx = windowDimensions.width - (operationsGroupWidthPx + spacingBetweenSearchAndOpsGroupPx)
const searchAndNavMaxWidthPx = 300
return (
Expand Down

0 comments on commit d4a1956

Please sign in to comment.