-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
DataViews grid layout: Fix long pattern names display #65200
Open
akasunil
wants to merge
18
commits into
trunk
Choose a base branch
from
fix/pattern-title-text-overflow-65134
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+26
−1
Open
Changes from 5 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3c617c6
Fix pattern title text overflow
akasunil ac30e33
Apply text overflow on title for grid view only
akasunil 456e1c2
Merge branch 'trunk' of github.com:WordPress/gutenberg into fix/patte…
akasunil 1dd9af3
Update grid view design for grid view
akasunil b202059
Merge branch 'trunk' of github.com:WordPress/gutenberg into fix/patte…
akasunil 82f93d0
Merge branch 'trunk' of github.com:WordPress/gutenberg into fix/patte…
akasunil 3dcb305
Merge branch 'trunk' of github.com:WordPress/gutenberg into fix/patte…
akasunil daa89f5
Fix my pattern titles text overflow issue
akasunil 9aa7ed3
Merge branch 'trunk' of github.com:WordPress/gutenberg into fix/patte…
akasunil 4836360
Rewrite styles
akasunil b718624
Resolved conflict and sync with trunk
akasunil dfd3599
Merge branch 'trunk' of github.com:WordPress/gutenberg into fix/patte…
akasunil 1f10f86
Remove unneccessory changes
akasunil 41c6d75
Fix button outline issue and remove component prefix in styles
akasunil 3aabeb8
Resolved conflict and sync with trunk
akasunil d91af64
Remove static styles for action button on grid view
akasunil fd242a5
Merge branch 'trunk' of github.com:WordPress/gutenberg into fix/patte…
akasunil 1d3d8b0
Remove unneccessory changes
akasunil 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
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
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
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
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
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -104,6 +104,21 @@ | |||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
.dataviews-view-grid { | ||||||||||||||||||||||||||||
.edit-site-patterns__pattern-title { | ||||||||||||||||||||||||||||
display: -webkit-box; | ||||||||||||||||||||||||||||
-webkit-line-clamp: 2; | ||||||||||||||||||||||||||||
-webkit-box-orient: vertical; | ||||||||||||||||||||||||||||
white-space: normal; | ||||||||||||||||||||||||||||
padding-top: 3px; | ||||||||||||||||||||||||||||
align-self: start; | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
.edit-site-patterns__pattern-lock-icon { | ||||||||||||||||||||||||||||
align-self: start; | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This may be a personal preference, but you may find the following writing style easier to read: .edit-site-patterns__pattern-title {
.dataviews-view-grid & {
}
}
.edit-site-patterns__pattern-lock-icon {
.dataviews-view-grid & {
}
} It's similar to the writing style here: gutenberg/packages/edit-site/src/components/page-templates/style.scss Lines 26 to 38 in b202059
|
||||||||||||||||||||||||||||
.edit-site-page-patterns-dataviews { | ||||||||||||||||||||||||||||
.dataviews-view-grid__badge-fields { | ||||||||||||||||||||||||||||
.dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully) { | ||||||||||||||||||||||||||||
|
Oops, something went wrong.
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.
@jameskoster Is the icon size change (from 32px to 24px) something to expect in this PR? It should affect all layouts.
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.
Good spot, no this should only affect the grid layout.
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.
Should i change it with styles to only impact on grid view?