Skip to content

Scope H@H client-list font fallback to translated table content - #1367

Closed
OpportunityLiu with Copilot wants to merge 4 commits into
masterfrom
copilot/add-client-list-layout-optimization
Closed

OpportunityLiu with Copilot wants to merge 4 commits into
masterfrom
copilot/add-client-list-layout-optimization

Conversation

Copilot AI commented Sep 23, 2026 •

Copy link
Copy Markdown

The H@H client list could render translated Chinese and original English with different fallback fonts, causing mixed-language rows to sit off the same baseline and look visually uneven. This change narrows the fix to the translated client list itself instead of changing typography for the full page.

  • Problem

    • On hentaiathome.php, the translated client table mixes Chinese and English in the same row.
    • The page’s inherited font stack falls back differently for CJK glyphs, which shifts alignment in the client list.
  • Change

    • Add a page-specific style hook in the shared syringe injector for hentaiathome.php.
    • Inject a sans-serif font override only for the H@H client list table (#hct).
    • Enable the override only while UI translation is on, and remove it otherwise.
  • Scope

    • Targets the affected client list layout without resetting fonts for the rest of the H@H page.
    • Avoids touching unrelated sections such as download/hash blocks with their own font styling.
  • Implementation sketch

    if (location.pathname === '/hentaiathome.php' && config.translateUi) {
        style.textContent = '#hct { font-family: sans-serif; }';
    }

Copilot AI and others added 3 commits September 23, 2026 06:08
Co-authored-by: OpportunityLiu <13471233+OpportunityLiu@users.noreply.github.com>
Co-authored-by: OpportunityLiu <13471233+OpportunityLiu@users.noreply.github.com>
Co-authored-by: OpportunityLiu <13471233+OpportunityLiu@users.noreply.github.com>
Copilot AI changed the title [WIP] Add client list layout optimization after translation Scope H@H client-list font fallback to translated table content Sep 23, 2026
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.

H@H 客户端列表翻译后的布局优化

2 participants