Skip to content

Commit deaebb6

Browse files
authored
Merge pull request #4 from OnPoint-Dev-Tools/dev
Enhance CrewCode Hub with updates, security, and QOL improvements
2 parents 73f8215 + 992adee commit deaebb6

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎src/renderer/src/components/canvas/CanvasMode.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function CanvasMode({ workspaceName, openChatCount, openTerminalCount, pa
107107
// overflow button. The popover carries prompt toggle,
108108
// verbose-log toggle, and close. Add chat / Add terminal
109109
// live on the page-level FAB.
110-
<div className="canvas-mode-pane-menu" ref={paneMenuRef}>
110+
<div className="canvas-mode-pane-menu" ref={menuOpen ? paneMenuRef : undefined}>
111111
<button
112112
type="button"
113113
className="canvas-mode-pane-more"

‎src/renderer/src/components/chat/mobile-chat-layout.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ describe('mobile solo chat layout', () => {
3535

3636
it('keeps embedded terminal and Git side panes out of the solo-chat column', () => {
3737
expect(styles).toContain('.main > .termcol-outer,')
38-
expect(styles).toContain('.chat-pane-row > .gs { display: none !important; }')
38+
expect(styles).toContain('.main > .splitter { display: none !important; }')
39+
expect(styles).toContain('.chat-pane-row > .gs,')
40+
expect(styles).toContain('.mobile-git-backdrop,')
3941
})
4042
})

‎src/renderer/src/components/workspaces/mobile-workspace-drawer.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { describe, expect, it } from 'vitest'
55
const app = readFileSync(fileURLToPath(new URL('../../App.tsx', import.meta.url)), 'utf8')
66
const drawer = readFileSync(fileURLToPath(new URL('./WorkspacesDrawer.tsx', import.meta.url)), 'utf8')
77
const styles = readFileSync(fileURLToPath(new URL('../../styles/styles.css', import.meta.url)), 'utf8')
8-
const mobileStyles = styles.slice(styles.indexOf('@media (max-width: 768px)'))
8+
const mobileStyles = styles.slice(styles.indexOf('/* ── Mobile web shell'))
99
const mobileDrawerStyles = mobileStyles.slice(
1010
mobileStyles.indexOf('.app-region.drawer-left'),
1111
mobileStyles.indexOf('.main {'),

‎src/renderer/src/hooks/useMobileLayout.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export function useMobileLayout() {
2222
const [layout, setLayout] = useState(readViewport)
2323

2424
useEffect(() => {
25+
if (typeof window === 'undefined') return
2526
const check = () => setLayout(readViewport())
2627
check()
2728
window.addEventListener('resize', check)

0 commit comments

Comments
 (0)