From 3b55d64468a68203b7a2da9ab92408b40a96d54b Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 9 Oct 2025 21:17:14 +0100 Subject: [PATCH] feat(ui): ultra-compact date format for bookmarks sidebar (now, 5m, 3h, 2d, 1mo, 1y) --- src/components/BookmarkViews/CompactView.tsx | 4 ++-- src/utils/bookmarkUtils.tsx | 22 +++++++++++++++++++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/components/BookmarkViews/CompactView.tsx b/src/components/BookmarkViews/CompactView.tsx index 88cdf9cb..9adf69e1 100644 --- a/src/components/BookmarkViews/CompactView.tsx +++ b/src/components/BookmarkViews/CompactView.tsx @@ -2,7 +2,7 @@ import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faBookmark, faUserLock, faGlobe } from '@fortawesome/free-solid-svg-icons' import { IndividualBookmark } from '../../types/bookmarks' -import { formatDate } from '../../utils/bookmarkUtils' +import { formatDateCompact } from '../../utils/bookmarkUtils' import ContentWithResolvedProfiles from '../ContentWithResolvedProfiles' import { IconGetter } from './shared' @@ -75,7 +75,7 @@ export const CompactView: React.FC = ({ 60 ? '…' : '')} /> )} - {formatDate(bookmark.created_at)} + {formatDateCompact(bookmark.created_at)} {isClickable && (