initialize Electron desktop app and remove unused files
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { readFileSync } from 'fs'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
describe('ChatPanel tool drawer resizing support', () => {
|
||||
it('persists and clamps the live chat tool panel width while keeping mobile full width', () => {
|
||||
const source = readFileSync('packages/client/src/components/hermes/chat/ChatPanel.vue', 'utf8')
|
||||
|
||||
expect(source).toContain('class="chat-tool-panel"')
|
||||
expect(source).toContain('const TOOL_PANEL_STORAGE_KEY = "hermes.chat.toolPanelWidth"')
|
||||
expect(source).toContain('function clampToolPanelWidth')
|
||||
expect(source).toContain('Math.floor(available * 0.88)')
|
||||
expect(source).toContain('window.localStorage.setItem(TOOL_PANEL_STORAGE_KEY')
|
||||
expect(source).toContain('window.addEventListener("resize", handleToolPanelViewportResize)')
|
||||
expect(source).toContain('watch(showToolPanel')
|
||||
expect(source).toContain('width: 100% !important;')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user