FUS-7: keep activity modal on screen#1649
Conversation
Co-authored-by: multica-agent <github@multica.ai>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR updates Activity Log modal CSS sizing to use viewport-relative constraints ( ChangesModal viewport-safe sizing and layout
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/dashboard/app/components/ScriptsModal.css`:
- Around line 1183-1189: The modal's tight max-height plus overflow:hidden is
causing the internal .activity-log-content (which enforces min-height: 300px) to
be clipped on short viewports; update the modal styles (the block with width:
min(95vw, 640px); max-height: calc(100dvh - var(--overlay-padding-top, 10vh) -
16px); overflow: hidden) and the .activity-log-content rule so they cooperate:
either remove overflow: hidden and use overflow: auto on the modal, or relax the
modal max-height calculation to ensure it can shrink below
.activity-log-content's min-height (or replace the fixed min-height in
.activity-log-content with a responsive max/min-height using min(300px, X) /
max-height), making sure to reference and adjust the modal selector shown and
the .activity-log-content selector so the modal keeps on-screen and content
scrolls internally rather than being clipped.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 5a9a587b-9894-4ad7-b584-c66ead4e50e9
📒 Files selected for processing (2)
packages/dashboard/app/__tests__/activity-log-mobile-layout.test.tspackages/dashboard/app/components/ScriptsModal.css
Greptile SummaryThis PR fixes the Activity Log modal so it stays within the visible viewport by replacing the hard
Confidence Score: 5/5Safe to merge — the CSS change is a targeted, well-scoped fix that follows the same viewport-bounded modal pattern already used by SettingsModal, GitHubImportModal, and several other modals in the codebase. Both changed files are low-risk: the CSS update replaces a fixed 80vh cap with the same calc formula already proven across multiple modals, and the test rename + additions cleanly extend existing regression coverage without removing any existing assertions. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[".modal-overlay<br/>padding-top: var(--overlay-padding-top, 10vh)"] --> B[".modal.modal-lg<br/>width: 640px (base)"]
B --> C[".activity-log-modal overrides<br/>width: min(95vw, 640px)<br/>max-height: calc(100dvh - var(--overlay-padding-top, 10vh) - 16px)<br/>overflow: hidden"]
C --> D[".activity-log-header<br/>(fixed height)"]
C --> E[".activity-log-content<br/>flex: 1 / overflow-y: auto<br/>min-height: 0"]
subgraph Mobile ["@media max-width: 768px"]
F[".activity-log-modal<br/>max-height: 100dvh (full screen)"]
end
C -.-> F
Reviews (2): Last reviewed commit: "FUS-7 address activity modal review" | Re-trigger Greptile |
Co-authored-by: multica-agent <github@multica.ai>
Closes FUS-7
Summary:
Tests:
Summary by CodeRabbit
Release Notes
Style
Tests