mirror of
https://github.com/prymitive/karma
synced 2026-05-17 04:16:42 +00:00
fix(ui): prevent overflow on long input
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const AutosuggestTheme = {
|
||||
container: "autosuggest d-inline-block",
|
||||
container: "autosuggest d-inline-block mw-100",
|
||||
suggestionsContainer: "dropdown",
|
||||
suggestionsList: "dropdown-menu show shadow",
|
||||
suggestion: "dropdown-item cursor-pointer",
|
||||
|
||||
@@ -26,10 +26,10 @@ exports[`<FilterInput /> matches snapshot on default render 1`] = `
|
||||
aria-haspopup=\\"listbox\\"
|
||||
aria-owns=\\"react-autowhatever-1\\"
|
||||
aria-expanded=\\"false\\"
|
||||
class=\\"autosuggest d-inline-block\\"
|
||||
class=\\"autosuggest d-inline-block mw-100\\"
|
||||
>
|
||||
<input type=\\"text\\"
|
||||
class=\\"components-filterinput-wrapper text-white\\"
|
||||
class=\\"components-filterinput-wrapper text-white mw-100\\"
|
||||
placeholder
|
||||
size=\\"1\\"
|
||||
value
|
||||
|
||||
@@ -137,7 +137,7 @@ const FilterInput = onClickOutside(
|
||||
const { value } = inputProps;
|
||||
return (
|
||||
<input
|
||||
className="components-filterinput-wrapper text-white"
|
||||
className="components-filterinput-wrapper text-white mw-100"
|
||||
placeholder=""
|
||||
size={value.length + 1}
|
||||
{...inputProps}
|
||||
|
||||
Reference in New Issue
Block a user