Skip to content

Commit 6844c90

Browse files
committed
style: improved visibility of filterlist text upon scrolling
1 parent d0a4684 commit 6844c90

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/components/FilterListInput.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export function FilterListInput({
2828
<Form className="w-100 w-lg-auto" onSubmit={handleSubmit}>
2929
<InputGroup className="d-flex align-items-center mt-1">
3030
<Form.Label htmlFor="filterList" className="me-2 mb-0">
31-
{" "}
32-
Filter List:
31+
<span className="fw-bold">Filter List:</span>
3332
</Form.Label>
3433
<Form.Control
3534
type="text"

src/components/ListItem.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
color: $primary-beige;
1818
font-size: 1.25em;
1919
max-width: 50%;
20-
width: 100%;
20+
width: 80%;
2121
border-radius: 4px;
2222
}
2323

src/views/authenticated/List.scss

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
box-sizing: border-box;
1717
}
1818

19+
.filter-list {
20+
background-color: rgb(241, 230, 204);
21+
}
22+
1923
.Add-ShareList {
2024
flex-basis: 25%;
2125
}

src/views/authenticated/List.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function List({ data: unfilteredListItems, listPath }: Props) {
9090
<h2 className="ListName p-1 m-2 mt-2">{listName}</h2>
9191
</header>
9292

93-
<section className="d-flex sticky-top flex-nowrap align-items-center justify-content-center">
93+
<section className="filter-list d-flex sticky-top flex-nowrap align-items-center justify-content-center">
9494
{unfilteredListItems.length > 0 && (
9595
<FilterListInput
9696
searchTerm={searchTerm}

0 commit comments

Comments
 (0)