Skip to content

Commit

Permalink
style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tcaiger committed Dec 6, 2024
1 parent 644e9ad commit 0063f26
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
8 changes: 3 additions & 5 deletions packages/datatrak-web/src/features/Tasks/TaskPageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const Wrapper = styled.div`
display: flex;
align-items: self-start;
padding-inline-end: 2.7rem;
${({ theme }) => theme.breakpoints.down('sm')} {
padding-inline-end: 0.5rem;
}
`;

const HeadingContainer = styled.div`
Expand Down Expand Up @@ -59,11 +62,6 @@ const ContentWrapper = styled.div`
align-items: center;
justify-content: flex-end;
width: 100%;
${({ theme }) => theme.breakpoints.down('xs')} {
padding-inline-start: 1rem;
flex-direction: column;
padding-inline-end: 0.6rem;
}
`;

export const TaskPageHeader = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ const Container = styled.div`
}
${({ theme }) => theme.breakpoints.down('sm')} {
border: none;
border-radius: 0;
th.MuiTableCell-root {
border: none;
}
table .MuiTableRow-head:nth-child(2) {
display: none;
}
Expand Down
1 change: 1 addition & 0 deletions packages/datatrak-web/src/layout/MainPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const useHeaderVisibility = () => {
ROUTES.SURVEY_SELECT,
ROUTES.ACCOUNT_SETTINGS,
ROUTES.TASKS,
ROUTES.TASK_DETAILS,
];

return !headerLessRoutePatterns.some(pathPattern => matchPath(pathPattern, pathname));
Expand Down
5 changes: 4 additions & 1 deletion packages/datatrak-web/src/layout/TasksLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ import { StickyMobileHeader } from './StickyMobileHeader.tsx';
import { useIsMobile } from '../utils';

const HeaderLessFullHeightContainer = styled.div`
height: calc(100vh - ${HEADER_HEIGHT} - ${TITLE_BAR_HEIGHT});
display: flex;
flex-direction: column;
${({ theme }) => theme.breakpoints.up('sm')} {
height: calc(100vh - ${HEADER_HEIGHT} - ${TITLE_BAR_HEIGHT});
}
`;

const PageContainer = styled(BasePageContainer)`
Expand Down
15 changes: 5 additions & 10 deletions packages/datatrak-web/src/views/Tasks/TasksDashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@ import { TasksContentWrapper } from '../../layout';
import { TaskMetrics } from '../../components/TaskMetrics';

const ButtonContainer = styled.div`
padding-block-end: 0.5rem;
margin-block-start: 1rem;
${({ theme }) => theme.breakpoints.up('sm')} {
margin-inline-start: auto;
margin-block-start: 0;
padding-block-end: 0;
}
${({ theme }) => theme.breakpoints.down('xs')} {
align-self: self-end;
}
//padding-block-end: 0.5rem;
//margin-block-start: 1rem;
//margin-inline-start: auto;
//margin-block-start: 0;
//padding-block-end: 0;
`;

const CreateButton = styled(Button).attrs({
Expand Down

0 comments on commit 0063f26

Please sign in to comment.