From 7bd9feaa0860d0b196ba55bbaf3b27e7783d9bb4 Mon Sep 17 00:00:00 2001 From: bbland1 <104288486+bbland1@users.noreply.github.com> Date: Fri, 18 Oct 2024 18:02:29 -0400 Subject: [PATCH] making adjustments to use RB 1 Container on list, adjust classes on edit buttons for styling, list item classes for responsiveness --- src/components/ListItem.tsx | 9 ++++----- src/components/NavBar.scss | 6 +++--- src/components/forms/ItemQuantityForm.tsx | 13 ++++++------- src/styles/global.scss | 4 ++-- src/views/authenticated/List.tsx | 9 ++++++--- 5 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/components/ListItem.tsx b/src/components/ListItem.tsx index cf6ad47..7e48c6c 100644 --- a/src/components/ListItem.tsx +++ b/src/components/ListItem.tsx @@ -122,14 +122,13 @@ export function ListItemCheckBox({ item, listPath }: Props) { }; return ( -
{urgencyStatus} -
+
-

{item.name}

+ {item.name}
-
+
{" "} - ) : ( - )}
- ); } diff --git a/src/styles/global.scss b/src/styles/global.scss index 9126035..2305c4f 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -5,6 +5,7 @@ $theme-colors: ( "secondary": $primary-blue, "info": $tertiary-blue, "dark": $secondary-blue, + "danger": #dc3545, ); $font-size-root: null; @@ -26,7 +27,6 @@ body { text-align: center; border: none; padding: 0.5rem; - width: 11rem; &:hover { background-color: $secondary-blue; @@ -34,6 +34,6 @@ body { } } -a svg { +svg { fill: $primary-beige; } diff --git a/src/views/authenticated/List.tsx b/src/views/authenticated/List.tsx index 71b5fe7..c42e19d 100644 --- a/src/views/authenticated/List.tsx +++ b/src/views/authenticated/List.tsx @@ -4,7 +4,7 @@ import { useState, useMemo, useRef } from "react"; import { ListItemCheckBox } from "../../components/ListItem"; import { FilterListInput } from "../../components/FilterListInput"; import { ListItem, comparePurchaseUrgency } from "../../api"; -import { Container } from "react-bootstrap"; +import Container from "react-bootstrap/Container"; import Button from "react-bootstrap/Button"; import ShareListForm from "../../components/forms/ShareListForm"; import { AddItemForm } from "../../components/forms/AddItemForm"; @@ -75,7 +75,7 @@ export function List({ data: unfilteredListItems, listPath }: Props) { // Main content when list is not empty return ( - +

{listName}

@@ -104,7 +104,10 @@ export function List({ data: unfilteredListItems, listPath }: Props) {
-