Skip to content

chore: use new spacing leafygreen numbers #6871

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

Merged
merged 2 commits into from
Apr 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
merge main
  • Loading branch information
Anemy committed Apr 18, 2025
commit 539c5b773d75ed9731de0a50433de9189c1c4be9
24 changes: 0 additions & 24 deletions packages/compass-query-bar/src/components/option-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,30 +76,6 @@ const editorWithErrorStyles = css({
},
});

const queryBarEditorOptionInsightsStyles = css({
alignSelf: 'flex-start',
// To align the icon in the middle of the first line of the editor input
// (<input height> - <insight badge height>) / 2
paddingTop: 3,
paddingBottom: 3,
paddingLeft: 3,
paddingRight: 3,

// We make container the size of the collapsed insight to avoid additional
// shrinking of the editor content when hoveing over the icon. In this case
// it's okay for the content to be hidden by the expanded badge as user is
// interacting with the badge
width: spacing[600],
height: spacing[600],
overflow: 'visible',
display: 'flex',
justifyContent: 'flex-end',
});

const insightsBadgeStyles = css({
flex: 'none',
});

type OptionEditorProps = {
optionName: QueryOptionOfTypeDocument;
namespace: string;
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.