@@ -697,9 +697,9 @@ module WarningFlagsWidget = {
697
697
})
698
698
-> React .array
699
699
-> Some
700
- | Typing (typing ) =>
700
+ | Typing (typing ) if typing . suggestion != NoSuggestion =>
701
701
let suggestions = switch typing .suggestion {
702
- | NoSuggestion => React .string ( "Type + / - followed by a number or letter (e.g. +a+1)" )
702
+ | NoSuggestion => React .null
703
703
| ErrorSuggestion (msg ) => React .string (msg )
704
704
| FuzzySuggestions ({precedingTokens , selected , results , modifier }) =>
705
705
Array .mapWithIndex (results , ((flag , desc ), i ) => {
@@ -753,7 +753,8 @@ module WarningFlagsWidget = {
753
753
})-> React .array
754
754
}
755
755
Some (suggestions )
756
- | HideSuggestion (_ ) => None
756
+
757
+ | Typing (_ ) | HideSuggestion (_ ) => None
757
758
}
758
759
759
760
let suggestionBox =
@@ -829,17 +830,22 @@ module WarningFlagsWidget = {
829
830
<div className = {"flex justify-between border p-2 " ++ activeClass }>
830
831
<div >
831
832
chips
832
- <input
833
- ref = {ReactDOM .Ref .domRef (inputRef )}
834
- className = "outline-none bg-gray-90 placeholder-gray-20 placeholder-opacity-50"
835
- placeholder = "Flags"
836
- type_ = "text"
837
- tabIndex = 0
838
- value = inputValue
839
- onChange
840
- onFocus
841
- onBlur
842
- />
833
+ <section className = "mt-3" >
834
+ <input
835
+ ref = {ReactDOM .Ref .domRef (inputRef )}
836
+ className = "inline-block p-1 max-w-20 outline-none bg-gray-90 placeholder-gray-20 placeholder-opacity-50"
837
+ placeholder = "Flags"
838
+ type_ = "text"
839
+ tabIndex = 0
840
+ value = inputValue
841
+ onChange
842
+ onFocus
843
+ onBlur
844
+ />
845
+ <p className = "mt-1 text-12" >
846
+ {React .string ("Type + / - followed by a number or letter (e.g. +a+1)" )}
847
+ </p >
848
+ </section >
843
849
</div >
844
850
deleteButton
845
851
</div >
0 commit comments