diff --git a/packages/build/src/config.ts b/packages/build/src/config.ts index 73877b4a..0192978c 100644 --- a/packages/build/src/config.ts +++ b/packages/build/src/config.ts @@ -1,7 +1,7 @@ import { join } from 'node:path' import { root } from './root.ts' -export const threshold = 600_000 +export const threshold = 620_000 export const instantiations = 200_000 diff --git a/packages/chat-debug-view/src/parts/GetSelectionNodesDom/GetSelectionNodesDom.ts b/packages/chat-debug-view/src/parts/GetSelectionNodesDom/GetSelectionNodesDom.ts index 131f1546..b9c83c12 100644 --- a/packages/chat-debug-view/src/parts/GetSelectionNodesDom/GetSelectionNodesDom.ts +++ b/packages/chat-debug-view/src/parts/GetSelectionNodesDom/GetSelectionNodesDom.ts @@ -12,6 +12,32 @@ import { import { formatPercent } from '../FormatPercent/FormatPercent.ts' import * as TimelineSelectionHandleName from '../TimelineSelectionHandleName/TimelineSelectionHandleName.ts' +const startHandle: VirtualDomNode = { + childCount: 0, + className: mergeClassNames( + ChatDebugViewTimelineSelectionHandle, + ChatDebugViewTimelineSelectionHandleStart, + ChatDebugViewTimelineSelectionMarker, + ChatDebugViewTimelineSelectionMarkerStart, + ), + name: TimelineSelectionHandleName.Start, + role: AriaRoles.None, + type: VirtualDomElements.Button, +} + +const endHandle: VirtualDomNode = { + childCount: 0, + className: mergeClassNames( + ChatDebugViewTimelineSelectionHandle, + ChatDebugViewTimelineSelectionHandleEnd, + ChatDebugViewTimelineSelectionMarker, + ChatDebugViewTimelineSelectionMarkerEnd, + ), + name: TimelineSelectionHandleName.End, + role: AriaRoles.None, + type: VirtualDomElements.Button, +} + export const getSelectionNodesDom = ( hasSelection: boolean, selectionStartPercent: number | null, @@ -27,29 +53,7 @@ export const getSelectionNodesDom = ( style: `left:${formatPercent(selectionStartPercent)};width:${formatPercent(selectionEndPercent - selectionStartPercent)};`, type: VirtualDomElements.Div, }, - { - childCount: 0, - className: mergeClassNames( - ChatDebugViewTimelineSelectionHandle, - ChatDebugViewTimelineSelectionHandleStart, - ChatDebugViewTimelineSelectionMarker, - ChatDebugViewTimelineSelectionMarkerStart, - ), - name: TimelineSelectionHandleName.Start, - role: AriaRoles.None, - type: VirtualDomElements.Button, - }, - { - childCount: 0, - className: mergeClassNames( - ChatDebugViewTimelineSelectionHandle, - ChatDebugViewTimelineSelectionHandleEnd, - ChatDebugViewTimelineSelectionMarker, - ChatDebugViewTimelineSelectionMarkerEnd, - ), - name: TimelineSelectionHandleName.End, - role: AriaRoles.None, - type: VirtualDomElements.Button, - }, + startHandle, + endHandle, ] }