Repository navigation
notifications: keep the action row beside the thumbnail - #4428
Open
faryvojnik wants to merge 1 commit into
Open
faryvojnik wants to merge 1 commit into
faryvojnik wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).largeImageand 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-qmlpasses (qt/lock/logic) on the PR base.make lint-qmlskipped: noquickshell/.qmlls.ini(needs a runningqs).Type of change
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.pngandafter.pngare attached in the web form when opening the PR.Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings