Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: show item type on notebook & topic items

thecodrr3285f3fc92a6
diff --git a/apps/web/src/components/notebook/index.js b/apps/web/src/components/notebook/index.js
index f10b433c8..422a4aca8 100644
--- a/apps/web/src/components/notebook/index.js
+++ b/apps/web/src/components/notebook/index.js
@@ -51,6 +51,12 @@ function Notebook(props) {
{notebook.pinned && (
<Icon.PinFilled color="primary" size={13} sx={{ mr: 1 }} />
)}
+ <Text variant="subBody" color="primary">
+ Notebook
+ </Text>
+ <Text as="span" mx={1}>
+ •
+ </Text>
{new Date(notebook.dateCreated).toLocaleDateString("en", {
month: "long",
day: "2-digit",
diff --git a/apps/web/src/components/topic/index.js b/apps/web/src/components/topic/index.js
index ad071e760..b2e488576 100644
--- a/apps/web/src/components/topic/index.js
+++ b/apps/web/src/components/topic/index.js
@@ -4,7 +4,7 @@ import { db } from "../../common/db";
import { store } from "../../stores/notebook-store";
import { store as appStore } from "../../stores/app-store";
import { hashNavigate } from "../../navigation";
-import { Text } from "rebass";
+import { Flex, Text } from "rebass";
import * as Icon from "../icons";
function Topic({ item, index, onClick }) {
@@ -16,9 +16,18 @@ function Topic({ item, index, onClick }) {
onClick={onClick}
title={topic.title}
footer={
- <Text mt={1} variant="subBody">
- {topic.notes.length} Notes
- </Text>
+ <Flex
+ sx={{ fontSize: "subBody", color: "fontTertiary" }}
+ alignItems="center"
+ >
+ <Text variant="subBody" color="primary">
+ Topic
+ </Text>
+ <Text as="span" mx={1}>
+ •
+ </Text>
+ <Text variant="subBody">{topic.notes.length} Notes</Text>
+ </Flex>
}
index={index}
menu={{