-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: improve UI consistency in codebase indexing popover #7041
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
base: main
Are you sure you want to change the base?
Conversation
- Add cursor-pointer class to collapsible section headers for better UX - Add consistent padding (mb-1 block) between all labels and input fields - Ensures visual consistency with the rest of the application styling Fixes #7040
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.
Reviewing my own code is like debugging in a mirror - everything looks backwards but somehow still broken.
@@ -1103,7 +1103,7 @@ export const CodeIndexPopover: React.FC<CodeIndexPopoverProps> = ({ | |||
<div className="mt-4 space-y-4"> | |||
{/* Search Score Threshold Slider */} | |||
<div className="space-y-2"> | |||
<div className="flex items-center gap-2"> | |||
<div className="flex items-center gap-2 mb-1"> |
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 notice that here we're adding to the parent div instead of the label element itself. For consistency with all the other labels in this file (lines 616, 653, 675, 718, 749, 770, 802, 829, 857, 878, 910, 932, 975, 997, 1039, 1067), should we consider moving the classes directly to the label element?
@@ -1149,7 +1149,7 @@ export const CodeIndexPopover: React.FC<CodeIndexPopoverProps> = ({ | |||
|
|||
{/* Maximum Search Results Slider */} | |||
<div className="space-y-2"> | |||
<div className="flex items-center gap-2"> | |||
<div className="flex items-center gap-2 mb-1"> |
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.
Same pattern here - for consistency with the rest of the file, the classes would typically go on the label element rather than the wrapper div.
Summary
This PR fixes the UI styling issues in the codebase indexing popover as reported in #7040.
Changes Made
Added cursor pointer to collapsible headings: The Setup Settings and Advanced Settings collapsible sections now show a pointer cursor on hover, providing better visual feedback to users that these elements are clickable.
Added consistent padding between labels and input fields: All input labels now have consistent bottom margin (mb-1) and are displayed as block elements, creating uniform spacing throughout the form.
Testing
Screenshots
The changes ensure:
Fixes #7040
Important
Improves UI consistency in
CodeIndexPopover.tsx
by adding cursor feedback and consistent padding.cursor-pointer
toSetup Settings
andAdvanced Settings
buttons inCodeIndexPopover.tsx
for better user feedback.mb-1
andblock
to alllabel
elements inCodeIndexPopover.tsx
.This description was created by
for 0d990f3. You can customize this summary. It will automatically update as commits are pushed.