mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 11:55:24 +00: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:
parent
434783da4d
commit
00ac29e53d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user