Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/renderer/src/components/canvas/CanvasMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function CanvasMode({ workspaceName, openChatCount, openTerminalCount, pa
// overflow button. The popover carries prompt toggle,
// verbose-log toggle, and close. Add chat / Add terminal
// live on the page-level FAB.
<div className="canvas-mode-pane-menu" ref={paneMenuRef}>
<div className="canvas-mode-pane-menu" ref={menuOpen ? paneMenuRef : undefined}>
<button
type="button"
className="canvas-mode-pane-more"
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/src/components/chat/mobile-chat-layout.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ describe('mobile solo chat layout', () => {

it('keeps embedded terminal and Git side panes out of the solo-chat column', () => {
expect(styles).toContain('.main > .termcol-outer,')
expect(styles).toContain('.chat-pane-row > .gs { display: none !important; }')
expect(styles).toContain('.main > .splitter { display: none !important; }')
expect(styles).toContain('.chat-pane-row > .gs,')
expect(styles).toContain('.mobile-git-backdrop,')
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { describe, expect, it } from 'vitest'
const app = readFileSync(fileURLToPath(new URL('../../App.tsx', import.meta.url)), 'utf8')
const drawer = readFileSync(fileURLToPath(new URL('./WorkspacesDrawer.tsx', import.meta.url)), 'utf8')
const styles = readFileSync(fileURLToPath(new URL('../../styles/styles.css', import.meta.url)), 'utf8')
const mobileStyles = styles.slice(styles.indexOf('@media (max-width: 768px)'))
const mobileStyles = styles.slice(styles.indexOf('/* ── Mobile web shell'))
const mobileDrawerStyles = mobileStyles.slice(
mobileStyles.indexOf('.app-region.drawer-left'),
mobileStyles.indexOf('.main {'),
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/hooks/useMobileLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function useMobileLayout() {
const [layout, setLayout] = useState(readViewport)

useEffect(() => {
if (typeof window === 'undefined') return
const check = () => setLayout(readViewport())
check()
window.addEventListener('resize', check)
Expand Down
Loading