From 9e092b9c15a0b609de4d7c5a46601940262c3fba Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Fri, 29 Dec 2023 07:27:02 +0000 Subject: [PATCH] fix(core): long page title issue in page history (#5436) ![CleanShot 2023-12-28 at 18.17.50@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/43733a5b-d1b4-40d5-b9d4-f86896cc0598.png) --- .../src/components/affine/page-history-modal/styles.css.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend/core/src/components/affine/page-history-modal/styles.css.ts b/packages/frontend/core/src/components/affine/page-history-modal/styles.css.ts index 8694b73337..e9d1f57659 100644 --- a/packages/frontend/core/src/components/affine/page-history-modal/styles.css.ts +++ b/packages/frontend/core/src/components/affine/page-history-modal/styles.css.ts @@ -52,6 +52,9 @@ export const previewHeaderTitle = style({ fontSize: 'var(--affine-font-xs)', fontWeight: 600, maxWidth: 400, // better responsiveness + overflow: 'hidden', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', }); export const previewHeaderTimestamp = style({