Keep wide pill for "adaptive" at mobile widths (#1513)

This commit is contained in:
Alexander Vanhee 2026-05-17 17:34:05 +02:00 committed by GitHub
parent 41cf57f6fb
commit 1411314e25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,8 +53,6 @@ template $BzFullView: Adw.Bin {
context_bar.homogeneous: false;
header_box.spacing: 12;
app_name_box.spacing: 0;
formfactor_support_tile_wide.visible: false;
formfactor_support_tile_narrow.visible: true;
screenshots.compact: true;
header_bar.show-title: false;
}
@ -338,7 +336,7 @@ template $BzFullView: Adw.Bin {
Box {
homogeneous: true;
$BzContextTile formfactor_support_tile_wide {
$BzContextTile {
label: bind $get_formfactor_label(template.ui-entry as <$BzResult>.object as <$BzEntry>.is-mobile-friendly) as <string>;
has-tooltip: true;
tooltip-text: bind $get_formfactor_tooltip(template.ui-entry as <$BzResult>.object as <$BzEntry>.is-mobile-friendly) as <string>;
@ -363,27 +361,6 @@ template $BzFullView: Adw.Bin {
};
}
$BzContextTile formfactor_support_tile_narrow {
visible: false;
label: bind $get_formfactor_label(template.ui-entry as <$BzResult>.object as <$BzEntry>.is-mobile-friendly) as <string>;
has-tooltip: true;
tooltip-text: bind $get_formfactor_tooltip(template.ui-entry as <$BzResult>.object as <$BzEntry>.is-mobile-friendly) as <string>;
lozenge-style: bind $bool_to_string(template.ui-entry as <$BzResult>.object as <$BzEntry>.is-mobile-friendly, "grey", "error") as <string>;
clicked => $formfactor_cb(template);
lozenge-child: Box {
Image {
visible: bind template.ui-entry as <$BzResult>.object as <$BzEntry>.is-mobile-friendly as <bool>;
icon-name: "smartphone2-symbolic";
}
Image {
visible: bind $invert_boolean(template.ui-entry as <$BzResult>.object as <$BzEntry>.is-mobile-friendly) as <bool>;
icon-name: "device-support-desktop-symbolic";
}
};
}
$BzContextTile {
clicked => $age_rating_cb(template);
has-tooltip: true;