Skip to content

fix(frontend): keep About-page sign-in panel from overlapping content#5132

Merged
mengw15 merged 1 commit into
apache:mainfrom
mengw15:fix/5126-about-page-login-overlap
May 19, 2026
Merged

fix(frontend): keep About-page sign-in panel from overlapping content#5132
mengw15 merged 1 commit into
apache:mainfrom
mengw15:fix/5126-about-page-login-overlap

Conversation

@mengw15
Copy link
Copy Markdown
Contributor

@mengw15 mengw15 commented May 19, 2026

What changes were proposed in this PR?

On the logged-out About page, the sign-in panel was rendered inside the .content column with position: absolute; top: 130px; right: 0;. Because the absolutely-positioned panel was removed from layout flow, the surrounding <p> description and <h2> headings had no right-side reserved space and flowed underneath the panel, leaving the right edge of the text visually overlapped (see #5126 screenshot).

This PR restructures the page so the title + description still span the full content width, and adds a sub-row that places the feature-list column side-by-side with the sign-in column:

  • Drop the unused outer nz-row on .about-page-container and the unused nz-col on .content (they only ever held one child, so the flex grid was inert).
  • Introduce a .features-row inside .content that pairs the feature-list (nzFlex="auto") with a 350px sign-in column. The workflow-GUI screenshot and Learn More section stay below at full width.
  • Replace position: absolute; top: 130px; right: 0; max-width: 350px; width: 100%; on .login-container with a normal-flow margin-top: 10px; so its top aligns with the feature-list <h2>.
  • Loosen .content > h2 to .content h2 so the (now-nested) feature heading still gets the 10px top margin.

On viewports narrow enough that 350px + auto cannot fit side-by-side, nz-row's default flex-wrap: wrap lets the sign-in column drop below the feature list rather than overlap it.

before change

Image

demo (after change)

record1.mov

Any related issues, documentation, discussions?

Closes #5126.

How was this PR tested?

CSS / template-only layout change. No automated test added — a unit test would only assert that *ngIf toggles a DOM node, which is a tautology of the template. Verified locally on the logged-out About page: title + description span the full width, feature-list and sign-in panel sit side by side, content no longer slides under the panel, and dragging the window narrow makes the panel wrap below instead of overflowing.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-4-7)

On the logged-out About page, the sign-in panel was rendered inside
the `.content` column with `position: absolute; top: 130px; right: 0;`.
Because the absolutely-positioned panel was removed from layout flow,
the surrounding `<p>` description and `<h2>` headings had no right-side
reserved space and flowed underneath the panel, leaving the right edge
of the text visually overlapped.

Restructure the page so the title + description still span the full
content width, and add a sub-row that places the feature-list column
side-by-side with the sign-in column:

- Drop the unused outer `nz-row` on `.about-page-container` and the
  unused `nz-col` on `.content` (they only ever held one child, so the
  flex grid was inert).
- Introduce a `.features-row` inside `.content` that pairs the
  feature-list (`nzFlex="auto"`) with a 350px sign-in column. The
  workflow-GUI screenshot and Learn More section stay below at full
  width.
- Replace `position: absolute; top: 130px; right: 0; max-width: 350px;
  width: 100%;` on `.login-container` with a normal-flow
  `margin-top: 10px;` so its top aligns with the feature-list `<h2>`.
- Loosen `.content > h2` to `.content h2` so the (now-nested) feature
  heading still gets the 10px top margin.

On viewports narrow enough that 350px + auto cannot fit side-by-side,
`nz-row`'s default `flex-wrap: wrap` lets the sign-in column drop
below the feature list rather than overlap it.

Closes apache#5126.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mengw15 mengw15 self-assigned this May 19, 2026
@github-actions github-actions Bot added fix frontend Changes related to the frontend GUI labels May 19, 2026
@chenlica
Copy link
Copy Markdown
Contributor

If the video is for the site after the change, please also add one for the site before the change.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.19%. Comparing base (bda1f95) to head (4bee670).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #5132   +/-   ##
=========================================
  Coverage     43.18%   43.19%           
  Complexity     2210     2210           
=========================================
  Files          1045     1045           
  Lines         40262    40265    +3     
  Branches       4251     4251           
=========================================
+ Hits          17389    17392    +3     
  Misses        21803    21803           
  Partials       1070     1070           
Flag Coverage Δ *Carryforward flag
access-control-service 39.53% <ø> (ø) Carriedforward from bda1f95
agent-service 33.72% <ø> (ø) Carriedforward from bda1f95
amber 43.86% <ø> (ø) Carriedforward from bda1f95
computing-unit-managing-service 0.00% <ø> (ø) Carriedforward from bda1f95
config-service 0.00% <ø> (ø) Carriedforward from bda1f95
file-service 32.18% <ø> (ø) Carriedforward from bda1f95
frontend 34.09% <100.00%> (+0.01%) ⬆️
python 90.49% <ø> (ø) Carriedforward from bda1f95
workflow-compiling-service 56.81% <ø> (ø) Carriedforward from bda1f95

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mengw15
Copy link
Copy Markdown
Contributor Author

mengw15 commented May 19, 2026

If the video is for the site after the change, please also add one for the site before the change.

it's in the linked issue, I can also include it in this pr

@mengw15 mengw15 enabled auto-merge (squash) May 19, 2026 06:28
@mengw15 mengw15 merged commit 8cf9e79 into apache:main May 19, 2026
21 checks passed
@mengw15 mengw15 deleted the fix/5126-about-page-login-overlap branch May 19, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

About page: Sign-In panel overlaps content text on logged-out view

4 participants