RI-7835 align info icon and database alias in instance header #5263
+180
−1
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.
What
Remove vertical padding from db index button container and add inline-flex display to tooltip anchor for proper alignment.
Adding
inline-flexwraps thespanthat is around anchor contents tightly and allows for flex alignment to kick in.This 'fix' is kind of dirty because is one-off and uses scss, but appropriate considering the time preasure.
The tooltip component should be modified a little to accomodate for this use-case by default, but considering its wide use, probably now is not the moment to do it.
Before


After
Testing
Open browser page, see that info icon is aligned with rest of the header
Note
Aligns the Instance Header info icon and DB index button and adds Storybook stories covering key scenarios.
FlexItemaround DB index to usepaddingLeft: 12(removes vertical padding)..tooltipAnchor) todisplay: inline-flexfor proper info icon alignment; keep tooltip width cap.instance-header/InstanceHeader.stories.tsxwith scenarios: default, multiple databases, long name, Redis Stack, return URL, loading, DB index disabled, and cluster connection; includes Redux store setup viaStorePopulator.Written by Cursor Bugbot for commit 7aefed5. This will update automatically on new commits. Configure here.