mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
Sculpt: avoid superfluous vertical space w/o info
When a <pkg> node of an index lacks an 'info' attribute, omit the corresponding fields in the pkg dialog to avoid blank vertical space.
This commit is contained in:
@@ -20,10 +20,12 @@ using namespace Sculpt;
|
||||
void Popup_dialog::_gen_pkg_info(Xml_generator &xml,
|
||||
Component const &component) const
|
||||
{
|
||||
gen_named_node(xml, "label", "info", [&] () {
|
||||
xml.attribute("text", Component::Info(" ", component.info, " ")); });
|
||||
if (component.info.length() > 1) {
|
||||
gen_named_node(xml, "label", "info", [&] () {
|
||||
xml.attribute("text", Component::Info(" ", component.info, " ")); });
|
||||
|
||||
_gen_info_label(xml, "pad1", "");
|
||||
_gen_info_label(xml, "pad1", "");
|
||||
}
|
||||
_gen_info_label(xml, "path", component.path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user