Whenever I type in a search, a list is displayed. The issue arises on small devices where the width of the list exceeds that of the search input or its parent container, which should not happen.
On small devices, it should always look like this: Example Link
However, instead of the desired layout, it currently looks like this: Another Example Link
How can I solve this issue?
I attempted to use the following CSS code snippet:
.parent{
display: contents;
}