@@ -646,7 +646,15 @@ impl Tab {
646646 status_page. set_description ( Some ( & glib:: markup_escape_text ( url. as_str ( ) ) ) ) ;
647647 status_page. set_icon_name ( Some ( "web-browser-symbolic" ) ) ;
648648
649- let child = gtk:: Box :: new ( gtk:: Orientation :: Vertical , 8 ) ;
649+ let child = gtk:: Box :: new ( gtk:: Orientation :: Horizontal , 8 ) ;
650+ child. set_halign ( gtk:: Align :: Center ) ;
651+
652+ let button = gtk:: Button :: with_label ( "Copy" ) ;
653+ button. add_css_class ( "pill" ) ;
654+ button. set_halign ( gtk:: Align :: Center ) ;
655+ button. set_action_name ( Some ( "win.set-clipboard" ) ) ;
656+ button. set_action_target_value ( Some ( & url. as_str ( ) . to_variant ( ) ) ) ;
657+ child. append ( & button) ;
650658
651659 let button = gtk:: Button :: with_label ( "Open" ) ;
652660 button. add_css_class ( "suggested-action" ) ;
@@ -656,13 +664,6 @@ impl Tab {
656664 button. connect_clicked ( move |_| {
657665 gtk:: show_uri ( None :: < & gtk:: Window > , url_clone. as_str ( ) , 0 ) ;
658666 } ) ;
659-
660- child. append ( & button) ;
661- let button = gtk:: Button :: with_label ( "Copy" ) ;
662- button. add_css_class ( "pill" ) ;
663- button. set_halign ( gtk:: Align :: Center ) ;
664- button. set_action_name ( Some ( "win.set-clipboard" ) ) ;
665- button. set_action_target_value ( Some ( & url. as_str ( ) . to_variant ( ) ) ) ;
666667 child. append ( & button) ;
667668
668669 status_page. set_child ( Some ( & child) ) ;
0 commit comments