Skip to content

Commit ee829c8

Browse files
committed
center header nav links
1 parent 9ce75cf commit ee829c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/algora_web/components/header.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule AlgoraWeb.Components.Header do
2121
class="-mt-3 mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8"
2222
aria-label="Global"
2323
>
24-
<div class="flex">
24+
<div class="flex lg:flex-1">
2525
<.wordmark class="h-8 w-auto text-foreground" />
2626
</div>
2727
<!-- Mobile menu button -->
@@ -36,7 +36,7 @@ defmodule AlgoraWeb.Components.Header do
3636
</button>
3737
</div>
3838
<!-- Desktop nav -->
39-
<div class="hidden lg:flex gap-4 mx-auto">
39+
<div class="hidden lg:flex-1 lg:flex lg:justify-center gap-4 mx-auto">
4040
<%= for link <- nav_links() do %>
4141
<.button
4242
navigate={link.path}
@@ -48,7 +48,7 @@ defmodule AlgoraWeb.Components.Header do
4848
<% end %>
4949
</div>
5050
51-
<div class="hidden lg:flex lg:justify-end gap-2">
51+
<div class="hidden lg:flex-1 lg:flex lg:justify-end gap-2">
5252
<.link
5353
:if={Algora.Stargazer.count()}
5454
class="group w-fit outline-none items-center hidden lg:flex"

0 commit comments

Comments
 (0)