Skip to content

Commit 03e5a41

Browse files
Fixed Sign out button full width in sidenav (#365)
* Fixed Sign out button with on sidenav * Fix button width for final-example --------- Co-authored-by: Delba de Oliveira <[email protected]> Co-authored-by: Delba de Oliveira <[email protected]>
1 parent 45fcde4 commit 03e5a41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dashboard/final-example/app/ui/dashboard/sidenav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function SideNav() {
2424
await signOut();
2525
}}
2626
>
27-
<button className="flex h-[48px] grow items-center justify-center gap-2 rounded-md bg-gray-50 p-3 text-sm font-medium hover:bg-sky-100 hover:text-blue-600 md:flex-none md:justify-start md:p-2 md:px-3">
27+
<button className="flex h-[48px] w-full grow items-center justify-center gap-2 rounded-md bg-gray-50 p-3 text-sm font-medium hover:bg-sky-100 hover:text-blue-600 md:flex-none md:justify-start md:p-2 md:px-3">
2828
<PowerIcon className="w-6" />
2929
<div className="hidden md:block">Sign Out</div>
3030
</button>

dashboard/starter-example/app/ui/dashboard/sidenav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function SideNav() {
1818
<NavLinks />
1919
<div className="hidden h-auto w-full grow rounded-md bg-gray-50 md:block"></div>
2020
<form>
21-
<button className="flex h-[48px] grow items-center justify-center gap-2 rounded-md bg-gray-50 p-3 text-sm font-medium hover:bg-sky-100 hover:text-blue-600 md:flex-none md:justify-start md:p-2 md:px-3">
21+
<button className="flex h-[48px] w-full grow items-center justify-center gap-2 rounded-md bg-gray-50 p-3 text-sm font-medium hover:bg-sky-100 hover:text-blue-600 md:flex-none md:justify-start md:p-2 md:px-3">
2222
<PowerIcon className="w-6" />
2323
<div className="hidden md:block">Sign Out</div>
2424
</button>

0 commit comments

Comments
 (0)