Skip to content

Commit dc72e6e

Browse files
committed
💄 fix: fixed responsiveness on mobile
1 parent f538c68 commit dc72e6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Components/TasksApp/TaskList.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function TaskList({
1212
}) {
1313
return (
1414
<ul
15-
className="w-1/2 mt-24 flex justify-center flex-col"
15+
className="lg:w-1/2 w-full mt-24 flex justify-center flex-col"
1616
>
1717
{[...tasks].reverse().map((task: any) => (
1818
<li className="flex flex-row w-full my-2" key={task.id}>
@@ -101,7 +101,7 @@ function Task({
101101
return (
102102
<label className="w-full grid grid-cols-5 grid-rows-1">
103103
<input
104-
className="checkbox self-center checkbox-lg"
104+
className="checkbox self-center checkbox-lg ml-4 lg:ml-0"
105105
type="checkbox"
106106
checked={task.done}
107107
onChange={(e) => {
@@ -123,7 +123,7 @@ function Task({
123123
onDelete(task.id);
124124
playSoundDelete();
125125
}}
126-
className="btn btn-md btn-circle btn-outline btn-error self-end justify-self-end"
126+
className="btn btn-md btn-circle btn-outline btn-error self-end justify-self-end mr-4 lg:mr-0"
127127
>
128128
<TrashIcon />
129129
</button>

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import TaskApp from "./Components/TasksApp/TaskApp";
44

55
export default function Home() {
66
return (
7-
<main className="flex min-h-screen flex-col items-center p-24 pt-0">
7+
<main className="flex min-h-screen flex-col items-center lg:pt-0 lg:p-24 md:p-0 pt-0">
88
<TaskApp />
99
</main>
1010
);

0 commit comments

Comments
 (0)