Hammer icon moves out of the textbox when adding an empty key-value pair
Created by: serenashe
Describe the bug The hammer icon moves to the lower part of the text box when you add an empty key-value pair.
The following screenshot shows the issue:
Versions used(KubeSphere/Kubernetes) KubeSphere: v3.1.0
To Reproduce Steps to reproduce the behavior:
- Go to Cluster Management > Configurations > ConfigMaps. Click Create.
- Under ConfigMap Setting, Click Add Data.
- Enter an empty key and value, and then click √.
- You'll see that the hammer icon moves to the lower part of the text box.
P.S This actually happens to all places where you can add a key-value pair. I suppose this module has been reused in different places.
Expected behavior The hammer icon is supposed to be in the same place as a non-empty key-value pair.
/assign @harrisonliu5 Please take a look at this issue, thanks:)