Skip to content

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

web: fix scrollbar blocking date in compact note list item (#9719)

01zulfif216c1b65df0
diff --git a/apps/web/src/components/group-header/index.tsx b/apps/web/src/components/group-header/index.tsx
index a78cdb15c..1050215a8 100644
--- a/apps/web/src/components/group-header/index.tsx
+++ b/apps/web/src/components/group-header/index.tsx
@@ -324,6 +324,7 @@ function GroupHeader(props: GroupHeaderProps) {
cursor: "pointer",
px: 1,
py: 1,
+ pr: 2,
borderBottom: "1px solid var(--border)",
// border: isMenuTarget ? "1px solid" : "none",
// borderColor: isMenuTarget ? "accent" : "transparent",
diff --git a/apps/web/src/components/list-container/index.tsx b/apps/web/src/components/list-container/index.tsx
index 7e9bb42c7..db35aa79c 100644
--- a/apps/web/src/components/list-container/index.tsx
+++ b/apps/web/src/components/list-container/index.tsx
@@ -55,6 +55,8 @@ export const CustomScrollbarsVirtualList = forwardRef<
return (
<ScrollContainer
{...props}
+ trackStyle={() => ({ width: 6 })}
+ thumbStyle={() => ({ width: 6 })}
forwardedRef={(sRef) => {
if (typeof ref === "function") ref(sRef);
else if (ref) ref.current = sRef;
diff --git a/apps/web/src/components/list-item/index.tsx b/apps/web/src/components/list-item/index.tsx
index ccc0ba4c2..49015f943 100644
--- a/apps/web/src/components/list-item/index.tsx
+++ b/apps/web/src/components/list-item/index.tsx
@@ -148,6 +148,7 @@ function ListItem<TItem extends Item, TContext>(
sx={{
px: 1,
py: isCompact ? 0 : 1,
+ pr: isCompact ? 10 : 0,
height: isCompact ? 25 : "inherit",
cursor: "pointer",
position: "relative",