diff --git a/app/views/projects/network/_head.html.haml b/app/views/projects/network/_head.html.haml
index 097ffb0b7fe0bc20fd39e8c2b14b12aa9d34be12..393037313a5f7e4d11cce0aa4b1a88b98c02778f 100644
--- a/app/views/projects/network/_head.html.haml
+++ b/app/views/projects/network/_head.html.haml
@@ -1,5 +1,5 @@
 .row-content-block.second-block.content-component-block.gl-px-0.gl-py-3
-  .gl-w-20
+  .gl-w-max-content.gl-max-w-full
     #js-graph-ref-switcher{ data: { project_id: @project.id, ref: @ref, network_path: project_network_path(@project) } }
 
   .oneline