Skip to content

Widget clicks only work on the label instead of the whole tile #45

Closed

Description

@Seb-GRAF

What happens

Some widgets react only when their text or content is clicked. Clicking the surrounding tile padding does nothing. The reporter sees this with personal widgets and widgets from Seb-GRAF/stablebar-packages.

Steps to reproduce

  1. Configure a widget with a primary action and space around its label, for example:

    {
      "id": "calendar",
      "type": "text",
      "position": "right",
      "text": "Calendar",
      "open": "com.apple.iCal",
      "style": { "width": 180, "height": 36, "paddingHorizontal": 16 }
    }
  2. Click its label, then click the empty area inside the tile.

  3. Compare whether Calendar opens. The same distinction applies to a widget with onClick, a popup or a menu.

These are reproduction steps derived from the report and code; an on-screen reproduction was skipped at the reporter's request.

Expected

The widget's whole tile, including padding and configured dimensions, activates its primary action or popup.

Environment

  • StableBar version and macOS version were not supplied.
  • Display setup, window manager and exact personal configuration were not supplied.
  • The source issue is present on main at 41a1877 on 2026-10-16.

Evidence

  • The reporter describes text-only clicks in both personal and store widgets.
  • The store's date widget uses open, and system-monitor and calendar-agenda use popupName; all pass through the shared WidgetView.
  • Searches of issues and PRs in every state for click, tile, hit area and padding, including result bodies and comments, found no existing report of this behavior.
  • The stable changelog and latest published beta (v0.5.0-beta.53) do not contain a fix, and current main still has the affected layout.

Diagnosis

In Sources/StableBar/BarView.swift, WidgetView.body gives each plain button only content(appearance) as its label. Padding and width/height modifiers wrap the button afterward, leaving that area outside its clickable label. Workspace buttons and popup menu rows already place their dimensions and a rectangular content shape inside the button label.

Move the widget padding and dimensions into the shared label and give it a rectangular content shape. This belongs in StableBar's renderer; widget packages need no changes.

Related

Triaged by Codex via T3 Code (gpt-6-astra).

Activity

  1. added
    bug
    on Oct 16, 2026
  2. stablebar-releases commented on Oct 21, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.5.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions