feat: enhance LanguageSwitcher component with drop-up option and impr…#121
Conversation
…ove layout for candidate and job detail pages
|
🚅 Deployed to the reqcore-pr-121 environment in applirank
|
📝 WalkthroughWalkthroughThe pull request adds responsive layout improvements to the dashboard pages and enhances the LanguageSwitcher component with a new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
app/components/LanguageSwitcher.vue (1)
198-199: Consider: Horizontal alignment differs between drop-up and drop-down.When
dropUpis true, the dropdown aligns left (left-0), but when false it aligns right (right-0). This may be intentional for the mobile placement, but if consistent alignment is preferred:♻️ Optional: Use consistent alignment
- :class="props.dropUp ? 'left-0 bottom-full mb-1' : 'right-0 mt-1'" + :class="props.dropUp ? 'right-0 bottom-full mb-1' : 'right-0 mt-1'"🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@app/components/LanguageSwitcher.vue` around lines 198 - 199, The dropdown's horizontal alignment toggles between left and right based on props.dropUp, causing inconsistent placement; update the class binding in LanguageSwitcher.vue (the element using :class with props.dropUp) to use a consistent horizontal alignment (e.g., always 'left-0' or always 'right-0') or make the horizontal side configurable via a new prop (e.g., horizAlign) and apply that prop instead of switching between 'left-0' and 'right-0', keeping the vertical classes ('bottom-full mb-1' vs 'mt-1') controlled by props.dropUp as before.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@app/components/LanguageSwitcher.vue`:
- Around line 198-199: The dropdown's horizontal alignment toggles between left
and right based on props.dropUp, causing inconsistent placement; update the
class binding in LanguageSwitcher.vue (the element using :class with
props.dropUp) to use a consistent horizontal alignment (e.g., always 'left-0' or
always 'right-0') or make the horizontal side configurable via a new prop (e.g.,
horizAlign) and apply that prop instead of switching between 'left-0' and
'right-0', keeping the vertical classes ('bottom-full mb-1' vs 'mt-1')
controlled by props.dropUp as before.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: adb587ce-dd9d-422d-8b8a-34fa9abdcbc8
📒 Files selected for processing (4)
app/components/AppTopBar.vueapp/components/LanguageSwitcher.vueapp/pages/dashboard/candidates/[id].vueapp/pages/dashboard/jobs/[id]/index.vue
…ove layout for candidate and job detail pages
Summary
Type of change
Validation
DCO
Signed-off-by) viagit commit -sSummary by CodeRabbit
New Features
Style