Skip to content

Commit 1a8a0e8

Browse files
committed
refactor: removing unnecessary css in list page style page
1 parent d1a41de commit 1a8a0e8

File tree

3 files changed

+21
-33
lines changed

3 files changed

+21
-33
lines changed

src/views/Layout.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
margin: 0 auto;
2121
padding-block: 0;
2222
padding-block-end: 6.26rem;
23-
//width: min(72ch, 100%);
24-
width: 100%;
23+
width: min(72ch, 100%);
24+
//width: 100%;
2525
height: 100dvh;
2626
}
27-
2827
}

src/views/authenticated/List.scss

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,46 +15,36 @@
1515
flex-wrap: wrap;
1616
box-sizing: border-box;
1717
flex-direction: column;
18+
flex-grow: 1;
19+
flex-shrink: 1;
1820
}
1921

2022
.list-functions {
2123
background-color: rgb(241, 230, 204);
2224
z-index: 1020;
2325
}
2426

25-
.Add-ShareList {
26-
flex-basis: 25%;
27-
}
27+
//.Share-ListForm {
28+
//flex-basis: 50%;
29+
//}
2830

29-
.Share-ListForm {
30-
flex-basis: 50%;
31-
}
31+
//.Add-ItemForm {
32+
//flex-basis: 80%;
33+
//}
3234

33-
.Add-ItemForm {
34-
flex-basis: 80%;
35-
}
35+
//.ListItemSection {
3636

37-
.ListItemSection,
38-
.Add-ShareList {
39-
flex-grow: 1; /* Both sections will take up equal width */
40-
flex-shrink: 1;
41-
align-items: flex-end;
42-
flex-wrap: column;
43-
margin-left: 2%;
44-
}
37+
//flex-grow: 1; /* Both sections will take up equal width */
38+
//flex-shrink: 1;
39+
//flex-wrap: column;
4540

46-
@media (max-width: 1000px) {
47-
.ListItemSection,
48-
.Add-ShareList {
49-
flex-basis: 50%;
50-
margin: auto;
51-
align-items: flex-end;
52-
}
53-
}
41+
//}
5442

55-
@media (max-width: 575px) {
43+
/*@media (max-width: 1000px) {
44+
.ListItemSection,
5645
.Add-ShareList {
57-
flex-basis: 100%; /* Full width for both sections */
58-
flex-wrap: wrap;
46+
//flex-basis: 50%;
47+
//margin: auto;
48+
//align-items: flex-end;
5949
}
60-
}
50+
} */

src/views/authenticated/List.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export function List({ data: unfilteredListItems, listPath }: Props) {
8282
</header>
8383

8484
<section className="AddItemForm">
85-
<section />
8685
<AddItemForm listPath={listPath} data={unfilteredListItems || []} />
8786
</section>
8887

0 commit comments

Comments
 (0)