- {Array.from({ length: resolvedCount }, (_, index) => (
-
- ))}
+
)
}
diff --git a/frontend/src/index.css b/frontend/src/index.css
index bd95ed18..28a2b0ec 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -545,6 +545,40 @@ input:-webkit-autofill:active {
animation: progress 2s ease-in-out infinite;
}
+.scanner-track {
+ mask-image: repeating-linear-gradient(
+ 90deg,
+ #000 0 4px,
+ transparent 4px 6px
+ );
+ -webkit-mask-image: repeating-linear-gradient(
+ 90deg,
+ #000 0 4px,
+ transparent 4px 6px
+ );
+}
+
+@keyframes scanner-sweep {
+ from { left: -15%; }
+ to { left: 85%; }
+}
+
+.scanner-sweep {
+ left: -15%;
+ width: 30%;
+ background-image: linear-gradient(
+ 90deg,
+ transparent,
+ color-mix(in oklab, currentColor 12%, transparent) 20%,
+ color-mix(in oklab, currentColor 40%, transparent) 35%,
+ currentColor 50%,
+ color-mix(in oklab, currentColor 40%, transparent) 65%,
+ color-mix(in oklab, currentColor 12%, transparent) 80%,
+ transparent
+ );
+ animation: scanner-sweep 2.8s ease-in-out infinite alternate;
+}
+
:root [data-sonner-toaster][data-sonner-theme] {
--normal-bg: var(--color-popover);
--normal-bg-hover: var(--color-accent);
diff --git a/frontend/src/pages/SessionDetail.tsx b/frontend/src/pages/SessionDetail.tsx
index 16c8f9b5..3083d248 100644
--- a/frontend/src/pages/SessionDetail.tsx
+++ b/frontend/src/pages/SessionDetail.tsx
@@ -968,7 +968,7 @@ export function SessionDetail() {
ref={promptInputRef}
directory={sessionDirectory}
sessionID={sessionId}
- showScrollButton={showScrollButton && !hasPromptContent}
+ showScrollButton={showScrollButton}
isSessionActive={isSessionActive}
isStreamingResponse={isStreamingResponse}
onScrollToBottom={scrollToBottom}
diff --git a/frontend/src/pages/__tests__/SessionDetail.scroll-floating.test.tsx b/frontend/src/pages/__tests__/SessionDetail.scroll-floating.test.tsx
index f270f328..7efc9636 100644
--- a/frontend/src/pages/__tests__/SessionDetail.scroll-floating.test.tsx
+++ b/frontend/src/pages/__tests__/SessionDetail.scroll-floating.test.tsx
@@ -379,11 +379,12 @@ describe('SessionDetail scroll floating button', () => {
})
})
- it('does NOT pass scroll button state when prompt has content', async () => {
+ it('passes scroll button state even when the prompt has content', async () => {
renderWith({ mobile: true, showScrollButton: true, promptContent: true })
- await waitFor(() => expect(screen.getByText('MockedPromptInput')).toBeInTheDocument())
- expect(screen.queryByLabelText('Scroll to bottom')).not.toBeInTheDocument()
+ await waitFor(() => {
+ expect(screen.getByLabelText('Scroll to bottom')).toBeInTheDocument()
+ })
})
it('shows clear button for prompt content only when session is idle', async () => {