[PR #5137] [MERGED] fix(ui): keep client IP log modal above edit modal #5790

Closed
opened 2026-11-02 04:04:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5137
Author: @JScarlet
Created: 6/9/2026
Status: ✅ Merged
Merged: 6/10/2026
Merged by: @MHSanaei

Base: main ← Head: fix/client-ip-log-modal-zindex


📝 Commits (3)

  • 431a31b fix: keep client IP log modal above edit modal
  • 61a9fa8 refactor: name client modal z-index values
  • 836c396 Merge branch 'main' into fix/client-ip-log-modal-zindex

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 frontend/src/pages/clients/ClientFormModal.tsx (+5 -0)

📄 Description

Summary

Fixes a stacked modal issue in the clients page.
When opening the IP log modal from the edit client modal, closing it, and opening it again, the IP log dialog can render behind the parent edit modal while the extra mask remains visible.
This sets explicit z-index values so the IP log modal consistently appears above the edit client modal.

Checks:

  • npm run typecheck
  • npm run lint
  • npm run build

Why

The darker backdrop shows that the IP log modal mask is opened, but the dialog itself is rendered behind the edit client modal.

截屏2026-06-09 22 14 08 截屏2026-06-09 22 16 11

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

Screenshots / recordings

Breaking changes

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/5137 **Author:** [@JScarlet](https://github.com/JScarlet) **Created:** 6/9/2026 **Status:** ✅ Merged **Merged:** 6/10/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/client-ip-log-modal-zindex` --- ### 📝 Commits (3) - [`431a31b`](https://github.com/MHSanaei/3x-ui/commit/431a31b9efc8be4090941b696543e5a98ed2efba) fix: keep client IP log modal above edit modal - [`61a9fa8`](https://github.com/MHSanaei/3x-ui/commit/61a9fa8add9886d3833324461cd172aff46060d5) refactor: name client modal z-index values - [`836c396`](https://github.com/MHSanaei/3x-ui/commit/836c3969d7cd826f6bb193e51c8ae09b7ca967a9) Merge branch 'main' into fix/client-ip-log-modal-zindex ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/clients/ClientFormModal.tsx` (+5 -0) </details> ### 📄 Description ## Summary Fixes a stacked modal issue in the clients page. When opening the IP log modal from the edit client modal, closing it, and opening it again, the IP log dialog can render behind the parent edit modal while the extra mask remains visible. This sets explicit z-index values so the IP log modal consistently appears above the edit client modal. Checks: - npm run typecheck - npm run lint - npm run build ## Why The darker backdrop shows that the IP log modal mask is opened, but the dialog itself is rendered behind the edit client modal. <img width="430" height="430" alt="截屏2026-06-09 22 14 08" src="https://github.com/user-attachments/assets/16236033-c116-4680-b802-64ee56ba9823" /> <img width="301" height="128" alt="截屏2026-06-09 22 16 11" src="https://github.com/user-attachments/assets/4b6d6dc6-d427-4dfe-8645-7b9812cf2ae0" /> <!-- What problem does this solve, or what use case does it enable? Link related issues here: "Closes #123", "Refs #456". --> ## Type of change - [x] Bug fix - [ ] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ## Areas affected - [x] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [ ] Xray config generation - [ ] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [ ] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) - [ ] Telegram bot ## How was this tested? <!-- Concrete steps the reviewer can repeat. For UI changes: which page, which actions, which browser. For backend: which endpoint, which payload, which response. Mention any new unit/integration tests added. --> ## Screenshots / recordings <!-- Required for UI changes. Drag images or GIFs here. Remove if N/A. --> ## Breaking changes <!-- Does this change require existing users to update their config, run a migration, or change their API calls? If yes, describe the migration path. Write "None" if there are no breaking changes. --> ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (when applicable). - [x] `go build ./...` and the test suite pass locally. - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [x] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:04:05 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5790
No description provided.