Skip to content

Commit

Permalink
fix some offscreen/truncated elements when using smaller windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ChildishGiant committed Aug 20, 2024
1 parent 0d23f5a commit c730b0b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ template $MixerWindow : Adw.ApplicationWindow {
Adw.HeaderBar {
styles ["flat"]

// Manually define the title so we can disable ellipsizing
[title]
Gtk.Label {
styles ["title"]
label: _("Mixer");
ellipsize: none;
}

[end]
Gtk.MenuButton menu_button {
icon-name: "open-menu-symbolic";
Expand All @@ -22,7 +30,10 @@ template $MixerWindow : Adw.ApplicationWindow {
}

Gtk.Stack stack {
// transition-type: ;
// So that the no-apps view doesn't go off-screen
width-request: 300;
height-request: 310;

Gtk.StackPage {
name: "main-content";
child:
Expand All @@ -47,7 +58,6 @@ template $MixerWindow : Adw.ApplicationWindow {
child:
Adw.StatusPage {
icon-name: "audio-volume-muted";
title: _("No apps");
description: _("There are no apps making any noise.");
vexpand: true;
hexpand: true;
Expand Down

0 comments on commit c730b0b

Please sign in to comment.