project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] Auto Backup Verification modal is overlapped by underlying PBS UI

Open mdobprv-lab opened this issue 3 months ago • 1 comments

[Bug] Auto Backup Verification modal is overlapped by underlying PBS UI

Hey there! 👋 Thanks for taking the time to report this bug — we appreciate it!

Please keep in mind: PegaProx is developed and maintained entirely by volunteers in our free time. We do our best, but we can't work magic 🪄 — please be patient, we'll get to your issue as soon as we can.

Want to help keep PegaProx alive?

  • ⭐ Star the project — it's free and helps a lot!
  • 💖 Become a Sponsor — helps us dedicate more time to development
  • 🤝 Contributing code or docs is always welcome too!

Describe the bug

When opening the Auto Backup Verification dialog in the PBS view, elements from the underlying PBS interface can be rendered above the modal.

In my case, part of the underlying table/header cuts horizontally across the Auto Backup Verification window.

I checked the implementation in web/src/ui.js. VerifyScheduleModal already uses:

<div className="fixed inset-0 z-[10010] flex items-center justify-center p-4" ...>

so this does not appear to be simply a too-low z-index.

It looks like the modal may be rendered inside an ancestor that creates its own CSS stacking context, causing the modal to remain constrained below another UI layer despite z-[10010].

A top-level portal such as ReactDOM.createPortal(..., document.body) may avoid the parent stacking-context limitation.

Steps to Reproduce

  1. Open a configured Proxmox Backup Server in PegaProx.
  2. Open the PBS backup verification section.
  3. Click Auto-verification to open Auto Backup Verification.
  4. Observe the modal.
  5. Part of the underlying PBS table/header is displayed above the modal and cuts across it.

Expected behavior

The Auto Backup Verification modal and its backdrop should always be displayed above all underlying application content.

No table headers, panels, or other elements from the PBS view should render above the modal.

Environment

  • PegaProx Version: 1.0.1
  • Installation Method: Docker Compose
  • OS: Debian Linux
  • Browser: Chrome 151
  • Behind Reverse Proxy? No
  • UI? Corporate

Logs

No relevant backend errors observed. This appears to be a frontend layout / CSS stacking-context issue.

Relevant implementation:

function VerifyScheduleModal({ authFetch, apiUrl, onClose }) {
    ...
    return (
        <div
            className="fixed inset-0 z-[10010] flex items-center justify-center p-4"
            style={{ background: 'rgba(8,14,24,0.72)' }}
            onClick={onClose}
        >
            ...
        </div>
    );
}

Screenshots

Screenshot attached showing the underlying PBS table/header rendered across the Auto Backup Verification modal.

Checklist

  • [ ] I have searched existing issues to make sure this is not a duplicate
  • [x] I am using the latest version of PegaProx

mdobprv-lab avatar Aug 17 '26 12:08 mdobprv-lab

Good catch, and thanks for pinpointing it to the stacking context — that's exactly it. z-[10010] was already plenty; the overlay was trapped under an ancestor in the PBS view that creates its own containing block (a transform/filter), so the PBS table painted over it.

Fixed by rendering VerifyScheduleModal through ReactDOM.createPortal(..., document.body), matching the other portalled modals in the app. On Testing now (58f3794), ships in the next release. Thanks for the clean root-cause — closing as fixed.

mkellermann97 avatar Aug 17 '26 13:08 mkellermann97