Skip to content

T3486 mycompassion homepage spacing - #405

Merged
ecino merged 3 commits into
18.0from
T3486-mycompassion-homepage-spacing
Sep 28, 2026
Merged

ecino merged 3 commits into
18.0from
T3486-mycompassion-homepage-spacing

Conversation

@danpa32

@danpa32 danpa32 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

T3486 — Fix failing quality test: MyCompassion: homepage

Original report

Two issues on the MyCompassion homepage: (1) no space between the window border and the logo/language switcher in the header, and (2) on phone mode (or responsive mode more likely), the footer elements should be aligned center.

How to test manually

  1. Upgrade the module if needed (-u theme_compassion_2025) — pure view/SCSS changes hot-reload under --dev=all, no upgrade required for those alone.
  2. Open the MyCompassion homepage (/my2/dashboard or any page using the shared header/footer) at a normal desktop width — the logo and language switcher should now sit with visible padding from the window edge instead of touching it.
  3. Narrow the browser to a phone width — the footer's policy link, social icons, and contact link should read as centered, not skewed to one side.

#o_main_nav (logo, language switcher) inherited the plain .container
class, which is intentionally flush edge-to-edge above 640px. Wire up
the existing but unused .container--header modifier onto the header
row instead of touching the shared .container class, giving it a
permanent gutter so the logo and language switcher no longer sit
flush against the window border.
The bottom bar's justify-content-center was already correct, but the
policy-link/social-icons/contact items still carried one-sided me-3/
ms-3 margins that threw off their visual centering once they stacked
into a column on mobile. Scope those margins to the row layout
(md and up) and use vertical margin between the stacked items instead.
The address/phone/email rows stack into a column below lg, but had no
gap between them, and their icon-to-label spacing was too tight once
stacked instead of inline.
@ecino
ecino merged commit a50f347 into 18.0 Sep 28, 2026
2 checks passed
@ecino
ecino deleted the T3486-mycompassion-homepage-spacing branch September 28, 2026 09:47
@greptile-apps

greptile-apps Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Low risk] Adjusts spacing and padding on the homepage header and footer.

Safe to merge with a non-blocking footer spacing issue.

Findings

  1. P2 Tablet contacts lose spacing ▶

Reviews (1) · Last reviewed commit: "[T3486] Add vertical spacing to stacked ..."

>
<div
class="py-1 px-lg-4 d-flex flex-column flex-lg-row align-items-center justify-content-center"
class="mb-3 mb-md-0 py-1 px-lg-4 d-flex flex-column flex-lg-row align-items-center justify-content-center"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Tablet contacts lose spacing

From 768px to 991px, the address, phone, and email still stack vertically, but mb-md-0 removes the new margin between them. Their padding keeps them readable, though they appear more crowded than on narrower screens. This is a non-blocking visual issue; keep the margin until the rows become horizontal.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Artifacts

Evidence from the check

  • The authored Playwright script extracts both revisions’ contact classes and renders their Bootstrap-utility approximation at six viewport widths; it identifies the executed source.

▶ Recording of the check

  • Chromium rendered the pre-PR classes, emphasizing tablet widths where the stacked rows have no added margin.

Pre-PR footer contacts at 900px

  • A Chromium poster frame shows the isolated pre-PR stacked contacts at 900px with their measured row spacing.

▶ Recording of the check

  • Chromium rendered the changed classes, emphasizing the 768–991px interval where the new margin is canceled while contacts remain stacked.

Changed footer contacts at 900px

  • A Chromium poster frame shows the changed stacked contacts at 900px with zero margin between row boxes.

Command output from the check

  • Captured command output records the working directory, extracted classes, computed gaps at all six widths, and exit code 0; it confirms the breakpoint-specific difference.

View artifacts

T-Rex Ran code and verified through T-Rex

@greptile-apps

greptile-apps Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.

  • P2 Tablet-width stacked contacts lose the new row spacing ▶

    • Bug
      • From 768 through 991px, address, phone, and email remain vertically stacked without the 16px row gap added for narrower screens. The existing py-1 padding still provides approximately 8px of content separation.
    • Cause
      • mb-md-0 takes effect at 768px, while the parent does not switch from flex-column to flex-lg-row until 992px.
    • Fix
      • Use mb-lg-0 instead of mb-md-0 on the three contact rows so the margin ends when the rows become horizontal.

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.

2 participants