feat: add text truncation hook and marquee support (#217)

Introduce a hook to detect text truncation for dynamic UI updates
Replace static marquee spans with a reusable marquee component in files and labels
Enable copying of terminal selection on mouse up and touch end
This commit is contained in:
Bohdan Triapitsyn
2026-01-26 00:24:40 +02:00
committed by GitHub
parent f34027df10
commit efe9ad27b7
18 changed files with 537 additions and 57 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ export const useMessageQueueStore = create<MessageQueueStore>()(
persist(
(set, get) => ({
queuedMessages: {},
queueModeEnabled: false,
queueModeEnabled: true,
addToQueue: (sessionId, message) => {
const id = `queued-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
+3 -3
View File
@@ -145,7 +145,7 @@ export const useUIStore = create<UIStore>()(
sidebarSection: 'sessions',
eventStreamStatus: 'idle',
eventStreamHint: null,
showReasoningTraces: false,
showReasoningTraces: true,
showTextJustificationActivity: false,
autoDeleteEnabled: false,
autoDeleteAfterDays: 30,
@@ -160,10 +160,10 @@ export const useUIStore = create<UIStore>()(
inputBarOffset: 0,
favoriteModels: [],
recentModels: [],
diffLayoutPreference: 'dynamic',
diffLayoutPreference: 'inline',
diffFileLayout: {},
diffWrapLines: false,
diffViewMode: 'single',
diffViewMode: 'stacked',
isTimelineDialogOpen: false,
nativeNotificationsEnabled: false,
notificationMode: 'hidden-only',