Skip to content

Commit

Permalink
fix(core): handle text overflow styles for search box (#8054)
Browse files Browse the repository at this point in the history
  • Loading branch information
SOUMITRO-SAHA authored Sep 3, 2024
1 parent bd8c844 commit bc306fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const root = style({
padding: '0 12px',
position: 'relative',
whiteSpace: 'nowrap',
overflow: 'hidden',
});
export const icon = style({
marginRight: '8px',
Expand All @@ -28,3 +29,8 @@ export const shortcutHint = style({
color: cssVarV2('text/tertiary'),
fontSize: cssVar('fontBase'),
});
export const quickSearchBarEllipsisStyle = style({
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
});
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export function QuickSearchInput({ onClick, ...props }: QuickSearchInputProps) {
onClick={onClick}
>
<SearchIcon className={styles.icon} />
{t['Quick search']()}
<span className={styles.quickSearchBarEllipsisStyle}>
{t['Quick search']()}
</span>
<div className={styles.spacer} />
<div className={styles.shortcutHint}>
{isMac ? ' ⌘ + K' : ' Ctrl + K'}
Expand Down

0 comments on commit bc306fa

Please sign in to comment.