Skip to content

The calendar widget's countdown and its unit are cut to … on the bar when the meeting title is short #751

Open

Description

@1tuz

What happens

The reporter supplied a screenshot of a calendar-style next-meeting row that is not readable. After the calendar icon, it shows a single letter, a number beginning with 7 followed by an ellipsis, and another ellipsis. Both the meeting information and the trailing value/unit are clipped.

The screenshot is the observed failure. Identifying the fragments as the native calendar title, minutes and min is a source-backed hypothesis, not a confirmed mapping of the screenshot to a particular view. The event title is not known and is not inferred here.

Steps to reproduce

  1. Display the next-meeting row in the reporter's existing setup.
  2. Observe the clipped row shown in the supplied screenshot.

The exact containing surface and width constraint are not established by the crop. It may be the bar or another surface that renders the widget. No new reproduction was run, and no calendar data or configuration was changed during triage.

Expected

Keep the countdown and its unit readable together. A long meeting title can use an ellipsis. If the available width cannot hold the row, use an appropriate compact or overflow presentation rather than independently truncating the value and unit into ambiguous fragments.

The Calendar guide describes the widget as showing the next meeting and its countdown.

Environment

  • Installed StableBar: 0.17.0, build 1187.
  • macOS on the reporting workstation: 27.0, build 26A428; arm64.
  • Displays, notch, window manager and exact widget configuration: not established for this screenshot.
  • Screenshot surface, scale and width: not established.
  • Source reviewed: main 01bf12a1a67f6083342421efa090e48213fbe62e. The same default calendar row exists at stable tag v0.17.0 (9ac8fb042aff9e5fa65805835dcfeaddb4777f59).

Evidence

The reporter's crop shows a calendar icon, a single-letter text fragment and two separately truncated trailing fragments. The screenshot was supplied during triage; no event name, account or private configuration is included in this report.

No app launch, rendering test, benchmark or automated test was performed for this report.

Diagnosis

Static diagnostic leads on pinned main:

  • WidgetLabel.swift:99–105, WidgetConfiguration.defaultLayout: the detailed native calendar layout is one row containing the calendar icon, text with maxWidth: 180, minutes, and the separate literal min.
  • NativeMetrics.swift:212–218, CalendarMetrics.read: text receives the meeting title and fields.minutes receives the countdown. This is why the screenshot is more consistent with a meeting row than a date-format failure, but the crop alone cannot prove it.
  • PopupView.swift:463–500, PopupBlockView.content: rows use a generic HStack; ordinary field blocks use lineLimit(1). This path does not give the calendar countdown and unit a shared, protected width.
  • BarView.swift:947–959, WidgetBlocks.body: custom layouts take precedence over the native default, so the exact configured layout must be identified before choosing a fix.

The main bar already measures units at intrinsic size and scrolls an unavoidably constrained unit. These safeguards mean the screenshot does not establish a defect in AdaptiveBarPlanner, or prove that the whole bar ran out of space. Investigate the actual containing surface first. Any fix should preserve those existing measurement and overflow behaviors and avoid making every text block globally fixed-size.

Related

  • #741: calendar selection in Settings, not row sizing.
  • #735: today-only event selection, not clipping.
  • #722 and #723: agenda metadata and conditional blocks; neither protects the default row's countdown width.
  • #746: the Settings window header's minimum width, not this widget row.
  • #169, shipped in 0.6.0: equal-width digits reduce width changes; they do not prevent value/unit clipping under a constrained width.

No matching issue or PR was found in all-state calendar/meeting searches and focused clipping/countdown searches. The relevant default layout is unchanged in the latest stable release and pinned main.

Triaged by OMP (closerouter/openai/gpt-6.1-sol).

Activity

  1. added
    needs-triage
    on Nov 16, 2026
  2. Seb-GRAF commented on Nov 17, 2026

    @Seb-GRAF
    Collaborator

    where was this: on the bar, in More widgets or in Settings? on the bar a widget that doesn't fit scrolls instead of cutting its text, so probably somewhere else

    can you add the full screenshot and the calendar widget's config?

  3. added
    bug
    P2
    needs-info
    and removed
    needs-triage
    on Nov 17, 2026
  4. 1tuz commented on Nov 18, 2026

    @1tuz
    Author
    calendar

    Answering your questions, and a screenshot of the details popup.

    Where it was: the calendar widget's details popup, not the bar and not Settings. My calendar widget is the native one, { "id": "widget-917151b2", "type": "calendar", "position": "left", "display": "all", "details": true }, no custom layout, so the default row in WidgetLabel.defaultLayout is the one drawing it.

    The cropped row I filed was from that popup's meeting area, where the title is one letter and the countdown is truncated separately from its unit.

    What the default row does today: [calendar] [text, maxWidth 180] [minutes] ["min"], a plain HStack of four blocks. The title gets its 180-point cap, and minutes and min are two independent one-line blocks, so nothing keeps the number and its unit together when the row is tight. That matches the original crop and is worth fixing on its own: give the countdown and its unit one shared width, or a combined field, instead of letting both truncate.

    Separate suggestion, only if you want it: a hours-and-minutes form for the countdown, so a meeting an hour and a half away reads 1h 30m instead of 90 min.

    That needs an additive field rather than changing fields.minutes, which is documented, tested and used by packages. Something like fields.countdown carrying 1h 30m, and minutes below an hour as today. The details popup would read Starts in 1h 30m. Battery already does this for its time estimate (\(minutes / 60)h \(minutes % 60)m in EssentialsDetails), so it would follow an existing pattern.

    Say the word and I'll put the suggestion in its own issue so it doesn't mix with the clipping bug.

  5. M4n0x commented on Nov 19, 2026

    @M4n0x
    Collaborator

    thanks, the screenshot settles it: the cut text is the widget on the bar (your red box), not the popup, and D is the meeting's real title, as the agenda shows. only the countdown and min get cut

    the default row gives the title maxWidth: 180, which lets it take any width up to 180, not only what its text needs. the bar sizes the widget to its content, then the row hands the title more than it needs and the minutes and min less: that's the gap after D. a longer title hides it, which is why it's rare

    until it's fixed, a layout with fitWidth on the title should avoid it:

    {
      "id": "widget-917151b2", "type": "calendar", "position": "left", "display": "all", "details": true,
      "layout": {
        "type": "row",
        "children": [
          { "type": "symbol", "name": "calendar" },
          { "type": "field", "field": "text", "fitWidth": true, "style": { "maxWidth": 180 } },
          { "type": "field", "field": "minutes", "hideWhenEmpty": "minutes" },
          { "type": "text", "text": "min", "hideWhenEmpty": "minutes" }
        ]
      }
    }

    and yes, please open the 1h 30m countdown as its own issue, nothing tracks it yet

  6. removed
    needs-info
    on Nov 19, 2026
  7. changed the title [-]Calendar next-meeting row shows unreadable clipped text[/-] [+]The calendar widget's countdown and its unit are cut to … on the bar when the meeting title is short[/+] on Nov 19, 2026
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

    P2bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions