A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: add color counts
thecodrra2513132790d
diff --git a/apps/web/src/components/navitem/index.js b/apps/web/src/components/navitem/index.jsindex 06328637a..262bc187f 100644--- a/apps/web/src/components/navitem/index.js+++ b/apps/web/src/components/navitem/index.js@@ -3,9 +3,9 @@ import { Flex, Button, Text } from "rebass";import { useStore as useUserStore } from "../../stores/user-store";function NavItem(props) {- const { key, animatable, icon: Icon, color, title } = props.item;+ const { key, animatable, icon: Icon, color, title, count } = props.item;const [isLoading, setIsLoading] = useState(false);- const isSyncing = useUserStore(store => store.isSyncing);+ const isSyncing = useUserStore((store) => store.isSyncing);useEffect(() => {if (animatable) {@@ -19,6 +19,7 @@ function NavItem(props) {justifyContent={["flex-start", "center", "center"]}alignItems="center"ml={[2, 0, 0]}+ sx={{ position: "relative" }}><Iconsize={18}@@ -28,11 +29,9 @@ function NavItem(props) {<Text variant="body" display={["flex", "none", "none"]} ml={1}>{title}</Text>- {/* {count && (- <Text sx={{ position: "absolute", top: -8, right: 10 }} fontSize={9}>- {count > 99 ? "99+" : count}- </Text>- )} */}+ <Text sx={{ position: "absolute", top: -2, right: 0 }} fontSize={9}>+ {count > 99 ? "99+" : count}+ </Text></Flex></Button>);