[PR #7039] [MERGED] fix(home): fit Daily Encounter, show Professor Mari whole, smooth widget hover (#7032) #7442

Closed
opened 2026-10-23 04:19:50 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7039
Author: @SpicyMarinara
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/4/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/home-widgets-7032


📝 Commits (5)

  • 3fbab80 fix(home): fit Daily Encounter, uncrop Professor Mari, stop hover glow pop
  • 842cbf4 fix(home): keep Home widget text whole at large UI fonts
  • 1198062 Merge remote-tracking branch 'origin/staging' into fix/home-widgets-7032
  • 47ab47b docs(changelog): qualify the Daily Encounter fit at the largest text sizes
  • 91e23d1 Merge remote-tracking branch 'origin/staging' into fix/home-widgets-7032

📊 Changes

5 files changed (+299 additions, -19 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+3 -2)
➕ e2e/home-widget-fit.e2e.ts (+226 -0)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+15 -7)
📝 packages/client/src/styles/globals.css (+53 -10)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7032

Why this change

The maintainer reported three problems with the Home widgets:

  • With an empty character library, the Daily Encounter message ("No characters are waiting yet") and its Open character library link didn't fit inside the widget.
  • On desktop, Professor Mari's head was cut off in Your guide. The maintainer asked for her image to be allowed over the widget's top border so she always fits.
  • Hovering a widget briefly showed square edges before the glow settled.

What changed

  • Daily Encounter, empty state:
    • It no longer forces an 8rem minimum height. It fills the space it has and uses the header's bottom gap.
    • It's bottom-aligned with mt-auto rather than justify-end, so if a very large UI font leaves no room it overflows below the title, never over it.
    • The link now has a visible keyboard focus ring.
  • Your guide:
    • The card no longer clips, so Mari can rise past its top border into the grid gap.
    • Her size is capped by the art column's height, so she stays within the gap and never covers a neighbouring widget.
    • The text column clips instead. It reaches into the card's padding through one variable, --mari-home-professor-pad, so at large UI fonts the text is cut where the card cut it before.
    • This avoids overflow-clip-margin, which Safari ignores.
  • Hover glow:
    • The glow was a drop-shadow() inside the hover filter. Its color-mix() colour resolves to oklab(), which Chromium's compositor leaves out while the filter transition runs, so the shadow and edges popped in only after the lift.
    • The glow is now a box-shadow on the widget's ::before that fades in with opacity. Brightness and saturation stay on the filter.
    • Reduced motion, reduced effects and paused effects all turn the glow off.
  • Tests:
    • New e2e/home-widget-fit.e2e.ts checks the empty-state fit and Mari's fit at 1920, 1440, 1100 and 900 wide and on 390 and 320 phones. It also runs a large-UI-font check, and a computed-style check that the hover glow uses box-shadow instead of drop-shadow.
    • The Home shell smoke test now expects the text column, not the card, to clip.
  • CHANGELOG: one entry.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run by the agent:

  • pnpm check and pnpm localization:check pass, with no new keys.
  • home-widget-fit.e2e.ts passes on desktop-chromium, mobile-chromium and mobile-webkit. The hover test is skipped on phones by design.
  • The large-font test fails on the first fix commit, which is what led to the second commit.
  • A wider sweep of 22 Home tests passes on desktop and mobile. The one exception is the mobile run of the Home shell smoke test, which fails at its chrome-surface colour check (core-flows.e2e.ts:12258). It fails the same way on staging's code, so it predates this PR.
  • An adversarial review found two problems that only show at large UI fonts: the Your guide text was cut off, and the Daily Encounter message could overlap its title. Both are fixed and measured at 6 font sizes across 6 widths.

Known limit: the Home grid's minimum row height is a fixed 208px and doesn't grow with the UI font. At the largest sizes (34px, or 26–30px on phones), the Daily Encounter message still can't fit and is cut at the bottom. That happened before this PR too, but it's now cut much less (55px instead of 208px at 34px on a 1440px screen).

Still to verify by hand:

  • In a desktop browser at about 1920, 1440, 1100 and 900px wide with an empty character library, check that the Daily Encounter message and Open character library sit fully inside the widget and that the link opens the library.
  • On a 390px phone, or in device emulation, check the same Daily Encounter fit and link.
  • Check that Professor Mari is shown whole, head included, in Your guide on desktop and mobile. She should not cover a neighbouring widget or cause horizontal scrolling.
  • On desktop, hover each Home widget in dark and light themes. The lift and glow should fade in together, with no square corners and no late glow.
  • In Safari, check that Your guide and Daily Encounter look the same as in Chrome.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

CHANGELOG updated; no user docs change.

UI evidence (if applicable)

The agent's before/after screenshots and measurement probes are in its local scratch folder. Visual checks are listed above.

Summary by CodeRabbit

  • Improvements
    • Adjusted the Professor Mari widget’s text and artwork layout to better fit the card, while allowing the artwork to extend slightly beyond its edges.
    • Updated the Daily Encounter empty state to use more of the available widget height, repositioned its icon, and refined the action spacing.
    • Refined home widget hover glow and edges. Image-grid cards no longer show the glow, and hover effects respect reduced-motion and reduced-effects settings.

🔄 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/Pasta-Devs/Marinara-Engine/pull/7039 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/home-widgets-7032` --- ### 📝 Commits (5) - [`3fbab80`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3fbab80daec2d6dd5a0e68e812328f2e667795bb) fix(home): fit Daily Encounter, uncrop Professor Mari, stop hover glow pop - [`842cbf4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/842cbf4ee2621ca3901b961ecd798df4fe52562e) fix(home): keep Home widget text whole at large UI fonts - [`1198062`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1198062301c2765cd370cfcf7ff811535aec5ef0) Merge remote-tracking branch 'origin/staging' into fix/home-widgets-7032 - [`47ab47b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/47ab47bd7a7ef4f2e1363e33f4ff2d87e158d5f4) docs(changelog): qualify the Daily Encounter fit at the largest text sizes - [`91e23d1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/91e23d1117710c32d5dc46903bf7ade3ad849f97) Merge remote-tracking branch 'origin/staging' into fix/home-widgets-7032 ### 📊 Changes **5 files changed** (+299 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+3 -2) ➕ `e2e/home-widget-fit.e2e.ts` (+226 -0) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+15 -7) 📝 `packages/client/src/styles/globals.css` (+53 -10) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #7032 ## Why this change The maintainer reported three problems with the Home widgets: - With an empty character library, the **Daily Encounter** message ("No characters are waiting yet") and its **Open character library** link didn't fit inside the widget. - On desktop, Professor Mari's head was cut off in **Your guide**. The maintainer asked for her image to be allowed over the widget's top border so she always fits. - Hovering a widget briefly showed square edges before the glow settled. ## What changed - **Daily Encounter, empty state:** - It no longer forces an 8rem minimum height. It fills the space it has and uses the header's bottom gap. - It's bottom-aligned with `mt-auto` rather than `justify-end`, so if a very large UI font leaves no room it overflows below the title, never over it. - The link now has a visible keyboard focus ring. - **Your guide:** - The card no longer clips, so Mari can rise past its top border into the grid gap. - Her size is capped by the art column's height, so she stays within the gap and never covers a neighbouring widget. - The text column clips instead. It reaches into the card's padding through one variable, `--mari-home-professor-pad`, so at large UI fonts the text is cut where the card cut it before. - This avoids `overflow-clip-margin`, which Safari ignores. - **Hover glow:** - The glow was a `drop-shadow()` inside the hover filter. Its `color-mix()` colour resolves to `oklab()`, which Chromium's compositor leaves out while the filter transition runs, so the shadow and edges popped in only after the lift. - The glow is now a `box-shadow` on the widget's `::before` that fades in with opacity. Brightness and saturation stay on the filter. - Reduced motion, reduced effects and paused effects all turn the glow off. - **Tests:** - New `e2e/home-widget-fit.e2e.ts` checks the empty-state fit and Mari's fit at 1920, 1440, 1100 and 900 wide and on 390 and 320 phones. It also runs a large-UI-font check, and a computed-style check that the hover glow uses `box-shadow` instead of `drop-shadow`. - The Home shell smoke test now expects the text column, not the card, to clip. - **CHANGELOG:** one entry. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run by the agent: - `pnpm check` and `pnpm localization:check` pass, with no new keys. - `home-widget-fit.e2e.ts` passes on desktop-chromium, mobile-chromium and mobile-webkit. The hover test is skipped on phones by design. - The large-font test fails on the first fix commit, which is what led to the second commit. - A wider sweep of 22 Home tests passes on desktop and mobile. The one exception is the mobile run of the Home shell smoke test, which fails at its chrome-surface colour check (`core-flows.e2e.ts:12258`). It fails the same way on staging's code, so it predates this PR. - An adversarial review found two problems that only show at large UI fonts: the Your guide text was cut off, and the Daily Encounter message could overlap its title. Both are fixed and measured at 6 font sizes across 6 widths. Known limit: the Home grid's minimum row height is a fixed 208px and doesn't grow with the UI font. At the largest sizes (34px, or 26–30px on phones), the Daily Encounter message still can't fit and is cut at the bottom. That happened before this PR too, but it's now cut much less (55px instead of 208px at 34px on a 1440px screen). Still to verify by hand: - In a desktop browser at about 1920, 1440, 1100 and 900px wide with an empty character library, check that the Daily Encounter message and **Open character library** sit fully inside the widget and that the link opens the library. - On a 390px phone, or in device emulation, check the same Daily Encounter fit and link. - Check that Professor Mari is shown whole, head included, in Your guide on desktop and mobile. She should not cover a neighbouring widget or cause horizontal scrolling. - On desktop, hover each Home widget in dark and light themes. The lift and glow should fade in together, with no square corners and no late glow. - In Safari, check that Your guide and Daily Encounter look the same as in Chrome. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) CHANGELOG updated; no user docs change. ## UI evidence (if applicable) The agent's before/after screenshots and measurement probes are in its local scratch folder. Visual checks are listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Adjusted the Professor Mari widget’s text and artwork layout to better fit the card, while allowing the artwork to extend slightly beyond its edges. * Updated the Daily Encounter empty state to use more of the available widget height, repositioned its icon, and refined the action spacing. * Refined home widget hover glow and edges. Image-grid cards no longer show the glow, and hover effects respect reduced-motion and reduced-effects settings. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:19:50 +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
Pasta-Devs/Marinara-Engine#7442
No description provided.