fix: Credenza dialog max-height overflow hiding footer buttons #2572 #136

Closed
opened 2026-04-05 17:01:22 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @shreyaspapi on 3/10/2026

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

Fixes #2572

The CredenzaContent component on desktop used max-h-screen (100vh) but was positioned with top: clamp(1.5rem, 12vh, 200px). This caused the dialog to extend up to 200px below the viewport, hiding the footer and its "Done" button behind the OS taskbar.

Changed md:max-h-screen to md:max-h-[calc(100vh-clamp(3rem,24vh,400px))] so the max-height subtracts the top offset (doubled to reserve equal space at top and bottom), keeping the dialog fully within the viewport.

How to test?

  1. Open any resource and navigate to Proxy tab
  2. Click the healthcheck icon on a target to open the HealthCheck dialog
  3. Toggle healthcheck Enabled to expand all form fields
  4. Verify the "Done" button is visible at 100% zoom without needing to scroll the page
  5. Zoom in/out — the dialog should stay within the viewport and scroll internally
*Originally created by @shreyaspapi on 3/10/2026* ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description Fixes #2572 The `CredenzaContent` component on desktop used `max-h-screen` (100vh) but was positioned with `top: clamp(1.5rem, 12vh, 200px)`. This caused the dialog to extend up to 200px below the viewport, hiding the footer and its "Done" button behind the OS taskbar. Changed `md:max-h-screen` to `md:max-h-[calc(100vh-clamp(3rem,24vh,400px))]` so the max-height subtracts the top offset (doubled to reserve equal space at top and bottom), keeping the dialog fully within the viewport. ## How to test? 1. Open any resource and navigate to **Proxy** tab 2. Click the healthcheck icon on a target to open the HealthCheck dialog 3. Toggle healthcheck **Enabled** to expand all form fields 4. Verify the **"Done" button** is visible at 100% zoom without needing to scroll the page 5. Zoom in/out — the dialog should stay within the viewport and scroll internally
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#136