Skip to content

Commit

Permalink
fix: search limit text field size
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 6, 2022
1 parent 7637d21 commit 4317e14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class EtcdKeyValueDisplayPanel(
border = JBUI.Borders.empty()
add(JLabel("Limit: "))
add(JBTextField("1000").apply {
preferredSize = Dimension(50, 20)
preferredSize = Dimension(100, 30)
limitTextField = this
addKeyListener(keyReleaseListener)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class EtcdValueDisplayPanel : JPanel(BorderLayout()) {

private fun initValuePreviewToolbarPanel() {
keyTextField = JBTextField(key).apply {
preferredSize = Dimension(290, 28)
minimumSize = Dimension(290, 28)
preferredSize = Dimension(290, 30)
minimumSize = Dimension(290, 30)
toolTipText = text
addKeyListener(object : KeyReleasedListener {
override fun keyReleased(e: KeyEvent?) {
Expand All @@ -111,8 +111,8 @@ class EtcdValueDisplayPanel : JPanel(BorderLayout()) {
})
}
ttlTextField = JBTextField().apply {
preferredSize = Dimension(100, 28)
minimumSize = Dimension(100, 28)
preferredSize = Dimension(100, 30)
minimumSize = Dimension(100, 30)
toolTipText = text
addKeyListener(object : KeyReleasedListener {
override fun keyReleased(e: KeyEvent?) {
Expand Down

0 comments on commit 4317e14

Please sign in to comment.