Skip to content

Commit

Permalink
Fix: Tabs were getting chunky because of this
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Feb 14, 2024
1 parent ba99611 commit c42cf65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/Widgets/Tab.vala
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
construct {
_label = new Gtk.Label (null);
_label.hexpand = true;
_label.valign = Gtk.Align.CENTER;
_label.ellipsize = Pango.EllipsizeMode.END;

close_button = new Gtk.Button.from_icon_name ("window-close");
Expand All @@ -218,6 +219,7 @@

tab_layout = new Gtk.CenterBox ();
tab_layout.hexpand = true;
tab_layout.valign = Gtk.Align.CENTER;
tab_layout.set_end_widget (close_button);
tab_layout.set_center_widget (_label);

Expand Down
3 changes: 0 additions & 3 deletions lib/Widgets/TabSwitcher.vala
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@
notebook.add_css_class ("tab-holder");

var add_button = new He.DisclosureButton.from_icon ("list-add-symbolic");
add_button.margin_top = 6;
add_button.margin_bottom = 6;
add_button.margin_end = 6;
add_button.tooltip_text = _("New Tab");

notebook.set_action_widget (add_button, Gtk.PackType.END);
Expand Down

0 comments on commit c42cf65

Please sign in to comment.