-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Try: Wrap date-time stamp well for publish status #61492
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +3.62 kB (+0.21%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
@@ -16,6 +16,11 @@ | |||
height: auto; | |||
min-height: $button-size-compact; | |||
|
|||
// This needs specificity. | |||
&.components-button { | |||
text-wrap: pretty; |
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 wonder if we should apply this to all buttons in .editor-post-panel__row
? That way we'd also capture templates with long labels.
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.
Moved it, let me know if this is a better place for it. |
Seems fine. But now I'm wondering if we should apply this at the component level :) Ideally wrapping in button labels should be kept to a minimum, but when it does occur shouldn't it always be cc @WordPress/gutenberg-components. |
@jasmussen as you suggested I have updated my PR. Please check it once. |
I'd prefer to keep this outside of the components territory, as it could break (or inadvertently change) existing buttons. Maybe we could reconsider if the browser support improves. Also, some folks might prefer |
Thanks for the work, @itzmekhokan and the feedback Tyxla! Catching up: @jameskoster can you take a glance and see if we should land this one, or #61703? |
Closing in favor of #61954. |
What?
The date-stamp in the summary panel can wrap poorly when it's long, usually putting the timezone on its own line out of context with the time itself:

This PR adds text-wrap: pretty; to address this so the timezone is more likely to be in context of the timestamp:
Testing Instructions
Write a post, change its status to scheduled, and observe the date-stamp in the summary panel. It should wrap well.