From 580f843e4cca31019ebf018b7b6cd029367cfa32 Mon Sep 17 00:00:00 2001 From: R3D347HR4Y Date: Mon, 15 Jun 2026 18:02:52 +0200 Subject: [PATCH] feat(drive): enhance paragraph style and font family selection in rich text editor - Updated class names for paragraph style and font family select triggers to improve styling consistency. - Added new CSS rules for hover and focus states on select triggers, enhancing user interaction feedback. - Implemented logic to drop trailing empty pages in document metrics calculations, optimizing page count accuracy. - Enhanced tests to verify new page count behavior when content fits within existing layouts. --- .../richtext/docs-paragraph-style-ui.tsx | 2 +- components/drive/richtext/docs-toolbar.tsx | 2 +- lib/drive/docs-page-metrics.test.ts | 7 +++++ lib/drive/docs-page-metrics.ts | 6 +++++ styles/richtext-editor.css | 26 +++++++++++++++++++ 5 files changed, 41 insertions(+), 2 deletions(-) diff --git a/components/drive/richtext/docs-paragraph-style-ui.tsx b/components/drive/richtext/docs-paragraph-style-ui.tsx index 19ab946..b0e3a85 100644 --- a/components/drive/richtext/docs-paragraph-style-ui.tsx +++ b/components/drive/richtext/docs-paragraph-style-ui.tsx @@ -47,7 +47,7 @@ export function DocsParagraphStyleSelect({