Skip to content

Commit

Permalink
Fix margin adjustments in AppBar widget
Browse files Browse the repository at this point in the history
- Corrected margin_start assignment to subtitle_box instead of labels_box.
- Added conditional margin adjustments for labels_box to ensure consistent layout.
  • Loading branch information
lainsce committed Aug 30, 2024
1 parent 6e352a2 commit 32f36db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Widgets/AppBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public class He.AppBar : He.Bin {
viewsubtitle.visible = true;
subtitle_box.set_visible (true);
main_box.spacing = 6;
labels_box.margin_start = 12;
subtitle_box.margin_start = 12;
} else {
viewsubtitle.label = null;
viewsubtitle.visible = false;
Expand Down Expand Up @@ -311,6 +311,9 @@ public class He.AppBar : He.Bin {
if (value) {
labels_box.margin_start = 12;
labels_box.margin_top = 0;
} else {
labels_box.margin_start = 0;
labels_box.margin_top = 0;
}
}
}
Expand Down

0 comments on commit 32f36db

Please sign in to comment.