Skip to content

Commit

Permalink
Layout improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Oct 31, 2018
1 parent 52624f3 commit 93d3ec9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/lib/users/widgets/public_key_selector.rb
Expand Up @@ -144,8 +144,13 @@ def inner_content
# @return [Yast::Term]
def blk_device_selector
VBox(
Left(MinWidth(50, blk_devices_combo_box)),
Left(PushButton(Id(:browse), Opt(:notify), _("Browse..."))),
Left(
HBox(
blk_devices_combo_box,
PushButton(Id(:refresh), Opt(:notify), _("Refresh..."))
)
),
Left(PushButton(Id(:browse), Opt(:notify), _("Browse...")))
)
end

Expand All @@ -171,10 +176,7 @@ def blk_devices_combo_box
options = available_blk_devices.map do |dev|
Item(Id(dev.name), "#{dev.model} (#{dev.name})", dev.name == selected_blk_device_name)
end
HBox(
ComboBox(Id(:blk_device), "", options),
PushButton(Id(:refresh), Opt(:notify), _("Refresh..."))
)
ComboBox(Id(:blk_device), Opt(:hstretch), "", options)
end

# Returns a list of devices that can be selected
Expand Down

0 comments on commit 93d3ec9

Please sign in to comment.