diff --git a/src/components/ListItem.css b/src/components/ListItem.css index a5ae56b..56448ca 100644 --- a/src/components/ListItem.css +++ b/src/components/ListItem.css @@ -30,14 +30,11 @@ .ListItem-label { margin-left: 0.2em; width: 100%; - display: flex; - justify-content: space-between; } .ListItem-badge { - display: flex; - margin: 0px 10px; - align-items: center; + margin: 0; + margin-bottom: 0.5em; } .ListItem-badge > span { @@ -51,6 +48,17 @@ margin: auto; font-size: 1.3em; font-weight: bold; - text-decoration: underline; text-underline-offset: 5px; } + +.ListItem-container { + display: flex; + flex-wrap: wrap; + justify-content: space-between; +} + +.ListItem-row { + display: flex; + align-items: center; + width: 100%; +} diff --git a/src/components/ListItem.jsx b/src/components/ListItem.jsx index eb1591d..15dde5b 100644 --- a/src/components/ListItem.jsx +++ b/src/components/ListItem.jsx @@ -86,22 +86,33 @@ export function ListItem({ listPath, item, name }) { return (
You own this list.
; + returnYou own this list.
; } else if (sharedListOwner) { - returnThis list belongs to {sharedListOwner.ownerName}.
; + return ( ++ This list belongs to {sharedListOwner.ownerName}. +
+ ); } else { return null; // Handle the case where there's no owner information available } diff --git a/src/index.css b/src/index.css index 28579f1..438017b 100644 --- a/src/index.css +++ b/src/index.css @@ -57,8 +57,19 @@ html { body { background-color: var(--color-bg); color: var(--color-text); - font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, - helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif; + font-family: + -apple-system, + BlinkMacSystemFont, + avenir next, + avenir, + segoe ui, + helvetica neue, + helvetica, + Ubuntu, + roboto, + noto, + arial, + sans-serif; font-size: 1.8rem; line-height: 1.4; margin: 0; @@ -75,7 +86,12 @@ code { border-radius: 4px; color: var(--color-text); display: inline-block; - font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, + font-family: + Menlo, + Consolas, + Monaco, + Liberation Mono, + Lucida Console, monospace; font-size: 0.9em; padding: 0.15em 0.15em; @@ -90,3 +106,18 @@ code { :root.theme-light code { --color-bg: var(--color-gray-light); } + +.delete-btn { + box-sizing: border-box; + background-color: unset; + border: none; +} + +.delete-icon { + height: 1.5em; +} + +input[type='checkbox'] { + height: 1.4em; + width: 1.4em; +} diff --git a/src/views/Layout.css b/src/views/Layout.css index 9ca0775..39782a4 100644 --- a/src/views/Layout.css +++ b/src/views/Layout.css @@ -10,7 +10,7 @@ .Layout { display: flex; flex-direction: column; - height: 100dvh; + height: 100%; } .Layout > * { diff --git a/src/views/List.css b/src/views/List.css new file mode 100644 index 0000000..00631be --- /dev/null +++ b/src/views/List.css @@ -0,0 +1,3 @@ +.checkbox-prompt { + font-style: italic; +} diff --git a/src/views/List.jsx b/src/views/List.jsx index dc05407..2d93dc3 100644 --- a/src/views/List.jsx +++ b/src/views/List.jsx @@ -3,6 +3,7 @@ import { ListItem, ListOwnerMessage } from '../components'; import { Link } from 'react-router-dom'; import { comparePurchaseUrgency } from '../utils/comparePurchaseUrgency'; import { useAuth } from '../api'; +import './List.css'; import { Flex, Box, TextField, IconButton } from '@radix-ui/themes'; import { MagnifyingGlassIcon, Cross1Icon } from '@radix-ui/react-icons'; @@ -21,12 +22,20 @@ export function List({ listPath, data, listName, userIdFromPath }) { const sortedItems = filteredItems.sort(comparePurchaseUrgency); + if (!currentUserId) { + return ( +Sign in to view your list items.
+List name: {listName}
}Check off items as you shop, your list will reset after 24hrs.
-Only manually uncheck if you didn't make the purchase.
+Checked items will reset after 24hrs.
<>Item Name
-Purchase Priority
+Item Name & Priority