-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hiding dashboard cards: add context menus #20384
Merged
staskus
merged 10 commits into
wordpress-mobile:trunk
from
kean:feature/personalize-home-tab-context-menus
Apr 3, 2023
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c11b579
Remove unused code from BlogDashboardCardFrameView
kean 1d2c7fb
Fix localizable strings comments in Blaze card
kean 60b88d8
Fix size of the context menu buttons on Dashboard (was too small)
kean c72dc43
Add context menu to Drafts and Scheduled posts
kean 6cd31fd
Add Hide This action to Todays Stats card on Dashboard
kean 9d2cd35
Update release notes
kean 07bbcfd
Revert "Fix size of the context menu buttons on Dashboard (was too sm…
kean 0389d8c
Remove personalization from release notes for now
kean f2715d9
Merge branch 'trunk' into feature/personalize-home-tab-context-menus
kean 8c96c77
Update context menu icon on dashboard cards
kean File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the changes on the latest
trunk
as I was interested in how these changes affect the latest development.The top of
4
for a multiline label looks visually too close. It looks like a title label centers vertically together with the button. When we have a single-line label, the top of4
looks fine, and8
is too far.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, good catch. I tested only with the existing cards, which are single-line.
titleLabel.numberOfLines = 0
was just added totrunk
this week.I reverted this change for now. It's a production behavior, and I don't want this change to hold the main PRs. I'll think of a different way to implement it. I could do it using
hitTest
, then there won't be any layout changes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, retested it, looks okay now, although yes, now the button appears a bit too low, so this part as you mentioned could be improved. 👍