diff --git a/webapp/src/AppComponents/FileBar.tsx b/webapp/src/AppComponents/FileBar.tsx index 52aa85a..3c9f2eb 100644 --- a/webapp/src/AppComponents/FileBar.tsx +++ b/webapp/src/AppComponents/FileBar.tsx @@ -51,7 +51,9 @@ export function FileBar(properties: { {toast ? ( - + URL copied to clipboard diff --git a/webapp/src/AppComponents/ShareButton.tsx b/webapp/src/AppComponents/ShareButton.tsx index 56482ea..d57c57c 100644 --- a/webapp/src/AppComponents/ShareButton.tsx +++ b/webapp/src/AppComponents/ShareButton.tsx @@ -7,8 +7,6 @@ export function ShareButton(properties: { onClick: () => void }) { onClick={onClick} onKeyDown={() => {}} style={{ - // position: "absolute", - // right: "0px", cursor: "pointer", color: "#FFFFFF", background: "#F2994A", @@ -19,6 +17,8 @@ export function ShareButton(properties: { onClick: () => void }) { marginRight: "10px", display: "flex", alignItems: "center", + fontFamily: "Inter", + fontSize: "14px", }} > diff --git a/webapp/src/components/borderPicker.tsx b/webapp/src/components/borderPicker.tsx index 521ae57..1d1974f 100644 --- a/webapp/src/components/borderPicker.tsx +++ b/webapp/src/components/borderPicker.tsx @@ -371,22 +371,6 @@ const LineWrapper = styled("div")` border: 1px solid white; `; -const CheckIconWrapper = styled("div")` - width: 12px; -`; - -type CheckIconProperties = { $checked: boolean }; -const CheckIcon = styled("div")` - width: 2px; - background-color: #eee; - height: 28px; - visibility: ${({ $checked }): string => { - if ($checked) { - return "visible"; - } - return "hidden"; - }}; -`; const NoneLine = styled("div")` width: 68px; border-top: 1px solid #e0e0e0; diff --git a/webapp/src/components/navigation/menus.tsx b/webapp/src/components/navigation/menus.tsx index 235c218..3949250 100644 --- a/webapp/src/components/navigation/menus.tsx +++ b/webapp/src/components/navigation/menus.tsx @@ -9,10 +9,15 @@ import { } from "@mui/material"; import Menu from "@mui/material/Menu"; import MenuItem from "@mui/material/MenuItem"; +import { Check } from "lucide-react"; import { useState } from "react"; import { useTranslation } from "react-i18next"; import type { SheetOptions } from "./types"; +function isWhiteColor(color: string): boolean { + return ["#FFF", "#FFFFFF"].includes(color); +} + interface SheetRenameDialogProps { isOpen: boolean; close: () => void; @@ -59,11 +64,20 @@ interface SheetListMenuProps { anchorEl: HTMLButtonElement | null; onSheetSelected: (index: number) => void; sheetOptionsList: SheetOptions[]; + selectedIndex: number; } const SheetListMenu = (properties: SheetListMenuProps) => { - const { isOpen, close, anchorEl, onSheetSelected, sheetOptionsList } = - properties; + const { + isOpen, + close, + anchorEl, + onSheetSelected, + sheetOptionsList, + selectedIndex, + } = properties; + + const hasColors = sheetOptionsList.some((tab) => !isWhiteColor(tab.color)); return ( { key={tab.sheetId} onClick={() => onSheetSelected(index)} > - + {index === selectedIndex ? ( + + ) : ( +
+ )} + {hasColors && } {tab.name} ))} diff --git a/webapp/src/components/navigation/navigation.tsx b/webapp/src/components/navigation/navigation.tsx index 081d354..116b769 100644 --- a/webapp/src/components/navigation/navigation.tsx +++ b/webapp/src/components/navigation/navigation.tsx @@ -1,5 +1,5 @@ import { styled } from "@mui/material"; -import { ChevronLeft, ChevronRight, Menu, Plus } from "lucide-react"; +import { Menu, Plus } from "lucide-react"; import { useState } from "react"; import { useTranslation } from "react-i18next"; import { NAVIGATION_HEIGH } from "../constants"; @@ -71,11 +71,9 @@ function Navigation(props: NavigationProps) { ))} - - - - - ironcalc.com + + ironcalc.com + ); } -const ChevronLeftStyled = styled(ChevronLeft)` - color: #333333; - width: 16px; - height: 16px; - padding: 4px; - cursor: pointer; -`; - -const ChevronRightStyled = styled(ChevronRight)` - color: #333333; - width: 16px; - height: 16px; - padding: 4px; - cursor: pointer; -`; - // Note I have to specify the font-family in every component that can be considered stand-alone const Container = styled("div")` position: absolute; @@ -129,24 +112,11 @@ const SheetInner = styled("div")` display: flex; `; -const LeftDivider = styled("div")` - height: 10px; - width: 1px; - background-color: #eee; - margin: 0px 10px 0px 0px; -`; - -const RightDivider = styled("div")` - height: 10px; - width: 1px; - background-color: #eee; - margin: 0px 20px 0px 10px; -`; - -const Advert = styled("div")` +const Advert = styled("a")` color: #f2994a; margin-right: 12px; font-size: 12px; + text-decoration: none; `; export default Navigation; diff --git a/webapp/src/components/navigation/sheet.tsx b/webapp/src/components/navigation/sheet.tsx index 59bc47d..ba25919 100644 --- a/webapp/src/components/navigation/sheet.tsx +++ b/webapp/src/components/navigation/sheet.tsx @@ -150,6 +150,7 @@ const Wrapper = styled("div")` border-top: 3px solid white; line-height: 34px; align-items: center; + cursor: pointer; `; const Name = styled("div")` diff --git a/webapp/src/icons/border-style.svg b/webapp/src/icons/border-style.svg index a74cde3..706b772 100644 --- a/webapp/src/icons/border-style.svg +++ b/webapp/src/icons/border-style.svg @@ -1,15 +1,7 @@ - - - + - + - +