Keep wide pill for "adaptive" at mobile widths (#1513)
This commit is contained in:
parent
41cf57f6fb
commit
1411314e25
1 changed files with 1 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue