-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
🐛 Fixed tags and authors not fitting in the input field #22052
Conversation
Changed the height to allow it to grow based on the number of tags or authors. Also made changes to the icon placement so it stays put when the field grows.
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
ghost/admin/app/styles/components/power-select.cssOops! Something went wrong! :( ESLint: 8.44.0 Error: Failed to load parser '@babel/eslint-parser' declared in 'ghost/admin/.eslintrc.js': Cannot find module '@babel/eslint-parser'
WalkthroughThis pull request focuses on CSS modifications in two files related to the Ghost admin interface. The changes primarily target the styling of input elements and dropdown components, specifically adjusting the layout, positioning, and sizing of Changes
Possibly related PRs
Suggested reviewers
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
ghost/admin/app/styles/patterns/forms.css (1)
325-331
: Consider increasing the minimum width for better usability.While the current styles work well, consider increasing
min-width
from 60px to something larger (e.g., 120px) to provide more comfortable space for typing longer tag/author names..ember-power-select-trigger-multiple-input { margin: 2px; padding: 0; border: 0; background: none; - min-width: 60px; + min-width: 120px; }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
ghost/admin/app/styles/components/power-select.css
(1 hunks)ghost/admin/app/styles/patterns/forms.css
(2 hunks)
🔇 Additional comments (5)
ghost/admin/app/styles/components/power-select.css (1)
312-313
: LGTM: Status icon positioning aligns with grid layout.The absolute positioning of the status icon ensures it remains properly aligned when the input field expands to accommodate multiple tags/authors.
ghost/admin/app/styles/patterns/forms.css (4)
285-286
: LGTM: Input field now expands properly.The change from fixed height to min-height with auto height allows the input field to grow vertically while maintaining a minimum size of 38px, effectively addressing the issue of tags and authors not fitting in the input field.
309-314
: LGTM: Grid layout improves input field structure.The grid layout with relative positioning creates a robust structure for the input field:
- 1fr column for content ensures maximum space for tags/authors
- 24px column properly accommodates the dropdown icon
- Relative positioning provides the correct context for the absolutely positioned status icon
316-323
: LGTM: Flexbox layout ensures proper tag/author spacing.The flexbox layout with wrap and gap provides optimal spacing and alignment for multiple tags/authors:
- flex-wrap allows tags to flow to the next line when needed
- gap: 4px ensures consistent spacing between tags
- align-items: center keeps tags vertically centered
333-336
: LGTM: Status icon alignment complements grid layout.The margin and transform changes ensure the dropdown icon remains properly centered in its designated grid column.
Input fields for tags and authors in the post sidebar were hard to use; they became scrollable if you added more than one line of either.
This fix addresses that; the input field now grows in size to accommodate for the number of tags or authors you enter.
fixes https://linear.app/ghost/issue/DES-1087/overflow-on-boxes-in-post-settings-too-small, https://linear.app/ghost/issue/DES-1084/tag-field-in-post-settings-menu-is-difficult-to-work-now-with-when