Skip to content

Commit

Permalink
ISSUE #5264 - fix: too long word in the search input can cause UI oddity
Browse files Browse the repository at this point in the history
  • Loading branch information
Amantini1997 committed Dec 6, 2024
1 parent fefed4f commit 8d1e2fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { SearchContext, SearchContextType } from '@controls/search/searchContext
import { useContext } from 'react';
import { TicketFiltersSelectionItem } from './item/ticketFiltersSelectionItem.component';
import { FormattedMessage } from 'react-intl';
import { MenuList, EmptyListMessage } from './ticketFiltersSelectionList.styles';
import { MenuList, EmptyListMessage, SearchWord } from './ticketFiltersSelectionList.styles';
import { CardFilter } from '../../../cardFilters.types';

type TicketFiltersSelectionListProps = {
Expand All @@ -34,7 +34,7 @@ export const TicketFiltersSelectionList = ({ onFilterClick }: TicketFiltersSelec
id="viewer.card.tickets.filters.emptyList"
defaultMessage="We couldn't find a match for {query}. Please try another search."
values={{
query: <b>&quot;{query}&quot;</b>,
query: <SearchWord>&quot;{query}&quot;</SearchWord>,
}}
/>
</EmptyListMessage>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@ export const MenuList = styled(MenuListBase)`
`;

export const EmptyListMessage = styled(EmptyListMessageBase)`
margin: 0 10px 10px
margin: 0 10px 10px;
`;

export const SearchWord = styled.b`
max-width: 365px;
word-break: break-word;
`;

0 comments on commit 8d1e2fa

Please sign in to comment.