Skip to content

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

web: show spaces in note,notebook,tag,reminder list item titles (#9027)

01zulfi903b96e62949
diff --git a/apps/web/src/components/list-item/index.tsx b/apps/web/src/components/list-item/index.tsx
index a29bf5581..ccc0ba4c2 100644
--- a/apps/web/src/components/list-item/index.tsx
+++ b/apps/web/src/components/list-item/index.tsx
@@ -202,7 +202,7 @@ function ListItem<TItem extends Item, TContext>(
data-test-id={`title`}
variant={"body"}
sx={{
- whiteSpace: "nowrap",
+ whiteSpace: "pre",
overflow: "hidden",
textOverflow: "ellipsis",
fontWeight: isCompact ? "body" : "medium",
diff --git a/apps/web/src/components/notebook/index.tsx b/apps/web/src/components/notebook/index.tsx
index 66cc848ae..7b4ee29be 100644
--- a/apps/web/src/components/notebook/index.tsx
+++ b/apps/web/src/components/notebook/index.tsx
@@ -153,7 +153,7 @@ export function Notebook(props: NotebookProps) {
variant={"body"}
color={isOpened ? "paragraph-selected" : "paragraph"}
sx={{
- whiteSpace: "nowrap",
+ whiteSpace: "pre",
overflow: "hidden",
textOverflow: "ellipsis",
fontWeight: "body",
diff --git a/apps/web/src/components/tag/index.tsx b/apps/web/src/components/tag/index.tsx
index 92151fa36..85fc01a20 100644
--- a/apps/web/src/components/tag/index.tsx
+++ b/apps/web/src/components/tag/index.tsx
@@ -67,7 +67,7 @@ function Tag(props: TagProps) {
variant={"body"}
color={isSelected ? "paragraph-selected" : "paragraph"}
sx={{
- whiteSpace: "nowrap",
+ whiteSpace: "pre",
overflow: "hidden",
textOverflow: "ellipsis",
fontWeight: "body",