Skip to content

Mobile name bug #91

Closed
Closed

Description

@reysonk
Image

I need to correct the display of the mobile card, I don't want to open PR because of such a small thing)

Activity

  1. reysonk commented on Nov 1, 2026

    @reysonk
    Author

    Thanks for the plugin — reproduced the bug and found the root cause. It is not in the card title CSS only: the whole card block collapses.

    Reproduction (desktop GUI, no mobile needed)

    On the board open devtools and shrink the list container:

    document.querySelector('.dsh-atb-cards').style.width = '60px';

    Result before fixing: .dsh-atb-card = 55px, .dsh-atb-card-title = 31×456 (one letter per line), .dsh-atb-card-meta = 31×143, badges (Обычная, ⚡ Полный доступ, 💬 Сессия, 💬 2, 10-31 14:28) move to x=320, i.e. outside the 55px-wide card. At width: 110px it is already broken too (title 85×158). On a normal width (1386px) everything is fine.

    Cause

    .dsh-atb-card, .dsh-atb-selrow > div { flex: 1; min-width: 0; } lets the card shrink to min-content (one glyph ≈ 31px), and .dsh-atb-card-title { word-break: break-word; } then wraps every character. .dsh-atb-card-meta has no min-width, so the badges overflow the shrunken card — that is the "whole block moved" part of the report, not only the title.

    Minimal fix (no JS changes)

    .dsh-atb-card { min-width: min(100%, 180px); box-sizing: border-box; }
    .dsh-atb-column { flex: 0 0 200px; min-width: 200px; }
    .dsh-atb-card-meta { flex-wrap: wrap; row-gap: 4px; }
    .dsh-atb-card-title { word-break: normal; overflow-wrap: break-word; }

    With min-width: 180px on the card plus min-width: 200px on the column the same 60px squeeze keeps the card at 180px, title 155×88 (wraps by words) and all badges stay inside the card (overCount: 0). The horizontal scroll should come from .dsh-atb-columns { overflow-x: auto } instead of shrinking cards below readability.

    Version check

    0.9.7 → 0.9.8 dist/client.js diff is 72 lines (old .dsh-atb-entry* styles removed, i18n/settings), the card/column/title rules are byte-identical, so this is not a 0.9.8 regression — it affects both versions.

    As a stopgap we inject the CSS above from a separate plugin (no reinstall, no fork), and it fixes both the single-letter title and the overflowing badges. A patch release with min-width: min(100%, 180px) on .dsh-atb-card and a non-shrinking column would be enough.

  2. reysonk commented on Nov 1, 2026

    @reysonk
    Author

    Second, related root cause — the task detail panel header (not the card):

    .dsh-atb-detail-head is a single flex row: .dsh-atb-detail-titlewrap { flex:1; min-width:0 } next to .dsh-atb-detail-topbtns { flex:none }. The button group ("Go to session", "Edit", "Duplicate", "Save as template", "Run", "Close") is ~644px wide, so on a 390px viewport the title is squeezed to ~30px and renders one letter per line — exactly what the screenshot shows when the detail panel is open.

    dsh-taskboard/lib/client.js:350-359:

    .dsh-atb-detail-head{display:flex;align-items:flex-start;gap:10px}
    .dsh-atb-detail-titlewrap{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
    .dsh-atb-detail-topbtns{display:flex;align-items:center;gap:6px;flex:none}

    Suggested upstream fix (narrow viewports only, desktop unchanged):

    @media (max-width:900px){
      .dsh-atb-detail-head{flex-wrap:wrap}
      .dsh-atb-detail-titlewrap{min-width:min(100%,200px)}
      .dsh-atb-detail-topbtns{max-width:100%;flex:1 1 100%;flex-wrap:wrap}
    }

    Verified in the live DOM by narrowing the detail container to 390px: title becomes 385×42 (two readable lines), buttons wrap to two rows inside the panel, no horizontal overflow.

  3. reysonk commented on Nov 2, 2026

    @reysonk
    Author
    Image

    After patch

  4. cloader commented on Nov 2, 2026

    @cloader
    Owner

    Thanks @reysonk for the report and detailed investigation!

    The task detail header fix is now included in v0.9.9, via #92 and #93.

    The title now retains readable space, the action group moves below it when needed, and the buttons wrap within the panel. This also handles narrow desktop panels and intermediate widths where longer Russian labels could still squeeze the title; the wide desktop layout is preserved.

    Validation included 109 Edge layout scenarios covering Chinese, English and Russian labels, narrow containers, and execution action states. Typecheck, builds and all 671 tests also passed, including CI on Node 22 and 26.

    Please try v0.9.9 and let us know if you still see any layout issues, particularly in the board cards themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions