Skip to content

fix: keyboard shortcuts drawer full-height background#8

Merged
astyfx merged 1 commit intomainfrom
fix/shortcuts-drawer-full-height
Mar 25, 2026
Merged

fix: keyboard shortcuts drawer full-height background#8
astyfx merged 1 commit intomainfrom
fix/shortcuts-drawer-full-height

Conversation

@heath-s
Copy link
Copy Markdown
Collaborator

@heath-s heath-s commented Mar 25, 2026

Summary

  • Keyboard Shortcuts Drawer(Cmd+/) 패널 배경이 화면 전체 높이를 채우지 않던 문제 수정
  • 기본 DrawerContentmax-h-[80vh], mb-24 제약을 data-[vaul-drawer-direction=top]: 오버라이드로 해제
  • 내부 레이아웃을 flex 기반으로 조정하여 Header/Footer 사이 카드 그리드가 남은 공간을 채우고 스크롤 지원

Test plan

  • Cmd+/로 Drawer를 열어 패널 배경이 전체 화면을 채우는지 확인
  • 창 크기를 줄여 카드 영역이 스크롤되는지 확인
  • 다른 Drawer(SessionReplay, WorkspaceTabs, prompt-input 등)가 영향받지 않는지 확인

🤖 Generated with Claude Code

Override base DrawerContent top-direction constraints so the shortcuts
panel fills the entire screen instead of stopping at 80vh.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 25, 2026 02:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Cmd+/ Keyboard Shortcuts top drawer so its background and layout can extend to full viewport height, and the shortcuts grid can scroll within the remaining space.

Changes:

  • Overrides Vaul top-drawer constraints (max-h-[80vh], mb-24, rounding/border) for the Keyboard Shortcuts drawer content.
  • Adjusts the inner layout to a flex-based column with a scrollable grid region between header and footer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +148 to +149
<DrawerContent className="border-border/80 bg-card/95 shadow-2xl supports-backdrop-filter:backdrop-blur-xl data-[vaul-drawer-direction=top]:max-h-dvh data-[vaul-drawer-direction=top]:mb-0 data-[vaul-drawer-direction=top]:rounded-b-none data-[vaul-drawer-direction=top]:border-b-0">
<div className="mx-auto flex h-full w-full max-w-6xl flex-col">
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DrawerContent still has h-auto (see src/components/ui/drawer.tsx), so only changing max-h-* doesn’t guarantee the top drawer actually becomes full-height. In that case, the inner wrapper’s h-full won’t resolve to a real height, and the flex-1 overflow-y-auto grid may never become the scroll container (it will just grow with content). Consider giving the top drawer a definite height/position (e.g., set data-[vaul-drawer-direction=top]:bottom-0 or data-[...]:h-dvh/min-h-dvh and overflow-hidden), and make the inner wrapper a flex item (flex-1 min-h-0) instead of relying on h-full.

Suggested change
<DrawerContent className="border-border/80 bg-card/95 shadow-2xl supports-backdrop-filter:backdrop-blur-xl data-[vaul-drawer-direction=top]:max-h-dvh data-[vaul-drawer-direction=top]:mb-0 data-[vaul-drawer-direction=top]:rounded-b-none data-[vaul-drawer-direction=top]:border-b-0">
<div className="mx-auto flex h-full w-full max-w-6xl flex-col">
<DrawerContent className="border-border/80 bg-card/95 shadow-2xl supports-backdrop-filter:backdrop-blur-xl data-[vaul-drawer-direction=top]:h-dvh data-[vaul-drawer-direction=top]:min-h-dvh data-[vaul-drawer-direction=top]:max-h-dvh data-[vaul-drawer-direction=top]:overflow-hidden data-[vaul-drawer-direction=top]:mb-0 data-[vaul-drawer-direction=top]:rounded-b-none data-[vaul-drawer-direction=top]:border-b-0">
<div className="mx-auto flex w-full max-w-6xl flex-1 flex-col min-h-0">

Copilot uses AI. Check for mistakes.
@astyfx astyfx merged commit 2c918c5 into main Mar 25, 2026
7 checks passed
@astyfx astyfx deleted the fix/shortcuts-drawer-full-height branch March 25, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants