Skip to content

notifications: keep the action row beside the thumbnail - #4428

Open
faryvojnik wants to merge 1 commit into
duxlabs-dev:masterfrom
faryvojnik:pr/notification-actions-beside-thumbnail
Open

faryvojnik wants to merge 1 commit into
duxlabs-dev:masterfrom
faryvojnik:pr/notification-actions-beside-thumbnail

Conversation

@faryvojnik

Copy link
Copy Markdown
Contributor

Description

On notification cards with a small right thumbnail, the action buttons now sit right under the text, beside the thumbnail, instead of below it.

Why: the action row was placed below the bottom of the thumbnail, so a card with a short text and a thumbnail had an empty gap between the text and the buttons.

Details:

  • NotificationCard.qml: the action row is anchored under the text and narrowed by the thumbnail width (mirrored in RTL). The card height is max(text + actions, thumbnail bottom).
  • Cards with largeImage and cards without an image are unchanged.

Testing: tested live on NixOS (niri) with DMS 2.1.2 + this patch: a notification with an image hint and two actions shows the action row right under the text beside the thumbnail; cards without an image are unchanged. make test-qml passes (qt/lock/logic) on the PR base. make lint-qml skipped: no quickshell/.qmlls.ini (needs a running qs).

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

None

Screenshots / video

Popup with a small right thumbnail and Open / Mark as read: before, the row is below the thumbnail with a gap under the text; after, it is right under the text and the card is about 25 px shorter. Taken on 2.1.2 with the notification patches applied (header icons are hover-only there, PR #4427). Images before.png and after.png are attached in the web form when opening the PR.

Before After
before after

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Nov 26, 2026

This branch has not been deployed

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

Labels

fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant