Skip to content

Fix self-delete tooltip clipped in EPeople table#1373

Merged
milanmajchrak merged 1 commit into
dtq-devfrom
fix/issue-800-self-delete-tooltip-clipped
Jul 13, 2026
Merged

Fix self-delete tooltip clipped in EPeople table#1373
milanmajchrak merged 1 commit into
dtq-devfrom
fix/issue-800-self-delete-tooltip-clipped

Conversation

@MatusBeke

@MatusBeke MatusBeke commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Problem

When hovering the disabled delete button on your own row in the EPeople registry, the tooltip explaining why it's disabled ("You cannot delete your own EPerson account.") is visually clipped — only part of the text is visible.

Root cause

The tooltip (ngbTooltip) is rendered inside the table's .table-responsive wrapper, which has overflow-x: auto (Bootstrap default). Since the delete button sits near the table's right edge, the tooltip popover extends past the wrapper's bounds and gets clipped by that overflow.

Fix

Add container="body" to the ngbTooltip directive on both delete entry points (EPeople registry list and the individual EPerson edit form), so the tooltip is appended to <body> instead of the clipped ancestor. This is the same convention already used elsewhere in this codebase for the same reason (e.g. health-status, orcid-queue components).

Test plan

  • yarn run lint — passes
  • circular dependency check — passes
  • yarn run test:headless — full suite (5465 tests) passes
  • yarn run build:prod — succeeds
  • Verified visually against a live DSpace stack (Docker) that the full tooltip text is now visible

Fixes dataquest-dev/dspace-customers#800

Summary by CodeRabbit

  • Bug Fixes
    • Improved the disabled self-delete tooltip display so it renders correctly without being constrained by surrounding elements.

The disabled delete button's ngbTooltip renders inside the table's
.table-responsive wrapper, which has overflow-x: auto — clipping the
tooltip popover since the button sits near the table's right edge.
Add container="body" so the tooltip is appended to <body> instead,
escaping the overflow-clipped ancestor (same convention already used
elsewhere in this codebase, e.g. health-status and orcid-queue).

Fixes dataquest-dev/dspace-customers#800

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2d30b1a1-90ad-45c3-b7bd-330d831fae39

📥 Commits

Reviewing files that changed from the base of the PR and between af0c70f and 7db9c1f.

📒 Files selected for processing (2)
  • src/app/access-control/epeople-registry/epeople-registry.component.html
  • src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html

📝 Walkthrough

Walkthrough

Disabled self-delete warning tooltips in the epeople registry and eperson form now explicitly use the document body as their rendering container.

Changes

Self-delete tooltip behavior

Layer / File(s) Summary
Configure self-delete tooltip containers
src/app/access-control/epeople-registry/*.html
Disabled self-delete warning tooltips in the registry and eperson form now specify container="body".

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: milanmajchrak, kasinhou

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: fixing the clipped self-delete tooltip in the EPeople table.
Description check ✅ Passed The description covers the problem, root cause, fix, and test plan, so it is mostly complete despite not mirroring every template section.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a UI bug where the “self-delete” disabled tooltip in the EPeople registry was being clipped by an overflowing table container by ensuring the tooltip is rendered in the document body.

Changes:

  • Add container="body" to the self-delete ngbTooltip in the EPeople registry table so the tooltip isn’t clipped by the responsive table wrapper.
  • Add the same container="body" configuration to the self-delete tooltip in the EPerson edit form for consistent behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html Renders the self-delete tooltip in body so it won’t be constrained by parent layout/overflow in the edit form.
src/app/access-control/epeople-registry/epeople-registry.component.html Renders the self-delete tooltip in body to prevent clipping near the right edge of the responsive table.

@milanmajchrak milanmajchrak merged commit 96209c4 into dtq-dev Jul 13, 2026
7 checks passed
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