-
Notifications
You must be signed in to change notification settings - Fork 0
fix: add day buttons spacing #16
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
Conversation
WalkthroughCSS sets context menu list items to inline-flex and introduces a configurable gap. TypeScript reads the container gap from computed styles, measures width from the container element, adds gap into per-button width calculations, and adjusts context-menu horizontal offset. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Suggested reviewers
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type 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: 1
🧹 Nitpick comments (1)
src/main/resources/META-INF/resources/frontend/src/fc-days-of-week-selector.ts (1)
98-101: Use logical margin and match the actual gap variableThe negative margin should match the computed gap to neutralize the inter-item gap before the overflow button, and it should respect RTL via logical properties.
Apply this diff:
- [part="container"] vaadin-context-menu { - margin-left: calc(var(--lumo-space-s) * -1); - } + [part="container"] vaadin-context-menu { + /* Cancel the inter-item gap before the overflow button, in LTR/RTL */ + margin-inline-start: calc(var(--fc-days-of-week-selector-button-space, var(--lumo-space-m)) * -1); + }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
src/main/resources/META-INF/frontend/styles/fc-days-of-week-selector-styles.css(1 hunks)src/main/resources/META-INF/resources/frontend/src/fc-days-of-week-selector.ts(3 hunks)
🔇 Additional comments (2)
src/main/resources/META-INF/frontend/styles/fc-days-of-week-selector-styles.css (1)
60-62: Gap customization via CSS variable looks goodUsing a single CSS custom property with a sane fallback is the right approach here. inline-flex is appropriate for laying items horizontally within the overlay’s list-box.
src/main/resources/META-INF/resources/frontend/src/fc-days-of-week-selector.ts (1)
67-68: Exposing container gap via CSS var is spot-onGood call aligning the container’s gap with the same CSS variable used in the overlay, keeping spacing consistent and themeable.
src/main/resources/META-INF/resources/frontend/src/fc-days-of-week-selector.ts
Outdated
Show resolved
Hide resolved
Buttons spacing may be customized using --fc-days-of-week-selector-button-space css variable Close #15
paodb
left a comment
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.
LGTM
Buttons spacing may be customized using --fc-days-of-week-selector-button-space css variable
Close #15
Summary by CodeRabbit
Style
Bug Fixes