From 6fdf215534784ad9b10c76fb38e77fc8f229ec8a Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Wed, 13 Mar 2024 21:51:01 -0500 Subject: [PATCH] Abbreviate cmdk dates on mobile --- src/site/CommandK.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/site/CommandK.tsx b/src/site/CommandK.tsx index 68ef8fe4..ced26023 100644 --- a/src/site/CommandK.tsx +++ b/src/site/CommandK.tsx @@ -148,7 +148,14 @@ export default async function CommandK() { items: photos.map(photo => ({ accessory: , label: titleForPhoto(photo), - annotation: formatDate(photo.takenAt), + annotation: <> + + {formatDate(photo.takenAt)} + + + {formatDate(photo.takenAt, true)} + + , path: pathForPhoto(photo), })), }]