From 1e07c85cb049d6766e99dc7f4f113ee8a0922de6 Mon Sep 17 00:00:00 2001 From: junjuny0227 Date: Fri, 6 Nov 2026 12:13:35 +0900 Subject: [PATCH] feat(site): scroll long commands on one line with fading ends and an overlay scrollbar --- apps/site/src/__tests__/app.test.tsx | 8 +- apps/site/src/__tests__/copy.test.tsx | 32 ++++++++ apps/site/src/sections/CopyCommand.tsx | 3 +- apps/site/src/sections/ScrollingCode.tsx | 97 ++++++++++++++++++++++++ apps/site/src/styles/site.css | 81 ++++++++++++++++++-- 5 files changed, 213 insertions(+), 8 deletions(-) create mode 100644 apps/site/src/sections/ScrollingCode.tsx diff --git a/apps/site/src/__tests__/app.test.tsx b/apps/site/src/__tests__/app.test.tsx index 8d147c7..ec3cef4 100644 --- a/apps/site/src/__tests__/app.test.tsx +++ b/apps/site/src/__tests__/app.test.tsx @@ -76,7 +76,7 @@ test('the hero shows the CLI install command for the detected platform, with a c for (const code of codes) { const onMac = hero(render(mac, code)); expect(onMac).toMatch( - /
brew install junjuny0227\/tap\/repot<\/code>