Skip to content

Commit

Permalink
fix: todos cosmetic issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkondle-dev committed Jun 25, 2024
1 parent 6cf3b65 commit ee7c5b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/(private)/todos/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const TodosPage = () => {
collapsed: { mobile: !form.values._id, desktop: !form.values._id },
}}
>
<AppShell.Main p={0} mt={rem(-100)} pt={rem(80)}>
<AppShell.Main p={0} mt={rem(-80)} pt={rem(80)}>
<Container size="sm">
<TodoPageActions getTodoLists={getTodoLists} todoList={todoList} refetch={refetch} />
{loading ? (
Expand Down
10 changes: 5 additions & 5 deletions components/Todo/Todo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ const Todo = ({ todo, refetch, setSelected }: Props) => {
<Group gap="xs" wrap="nowrap" justify="space-between">
<Group gap="xs" wrap="nowrap">
<ActionIcon
color={todo.color ? 'gray.0' : 'dark'}
color={todo.color ? 'gray.0' : 'gray'}
variant="transparent"
onClick={(e) => update(e, { isCompleted: !todo?.isCompleted })}
>
{todo?.isCompleted ? <IconCircleCheckFilled /> : <IconCircle />}
</ActionIcon>
<Text fw={700} c={todo.color ? 'gray.0' : 'dark'} lineClamp={2}>
<Text fw={700} c={todo.color ? 'gray.0' : 'gray'} lineClamp={2}>
{todo?.todo}
</Text>
</Group>
<ActionIcon
color={todo.color ? 'gray.0' : 'dark'}
color={todo.color ? 'gray.0' : 'gray'}
variant="transparent"
onClick={(e) => update(e, { isImportant: !todo?.isImportant })}
>
Expand All @@ -58,7 +58,7 @@ const Todo = ({ todo, refetch, setSelected }: Props) => {
</Group>
<Group display={todo?.list || todo?.date ? 'flex' : 'none'}>
<Badge
c={todo?.list?.color || 'dark'}
c={todo?.list?.color || 'gray'}
leftSection={<IconList size={14} />}
radius="xs"
variant="white"
Expand All @@ -67,7 +67,7 @@ const Todo = ({ todo, refetch, setSelected }: Props) => {
{todo?.list?.title}
</Badge>
<Badge
c={todo?.list?.color || 'dark'}
c={todo?.list?.color || 'gray'}
leftSection={<IconCalendar size={14} />}
radius="xs"
variant="white"
Expand Down
2 changes: 1 addition & 1 deletion components/Todo/TodoPageActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const TodoPageActions = ({ refetch, getTodoLists, todoList, isListPage = false }
return (
<Group mt="sm" mb="xl" justify="space-between">
<Text c={selected?.color} tt="capitalize" fw={700}>
{isListPage ? selected?.title : pathname.split('/')[2]}
{isListPage ? selected?.title : pathname.split('/')[2] || 'Todos'}
</Text>
<Group gap={rem(6)} justify="right">
<ActionIcon variant="subtle" color="gray" onClick={() => window.print()} title="Print">
Expand Down

0 comments on commit ee7c5b3

Please sign in to comment.