File tree Expand file tree Collapse file tree 5 files changed +12
-17
lines changed Expand file tree Collapse file tree 5 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function Navbar() {
20
20
p = { 4 }
21
21
>
22
22
< Link to = "/" >
23
- < Image src = { Logo } alt = "Logo" w = "180px" maxW = "2xs" px = { 2 } />
23
+ < Image src = { Logo } alt = "Logo" maxW = "3xs" p = { 2 } />
24
24
</ Link >
25
25
< Flex gap = { 2 } alignItems = "center" >
26
26
< UserMenu />
Original file line number Diff line number Diff line change @@ -22,10 +22,6 @@ const Sidebar = () => {
22
22
const { logout } = useAuth ( )
23
23
const [ open , setOpen ] = useState ( false )
24
24
25
- const handleLogout = async ( ) => {
26
- logout ( )
27
- }
28
-
29
25
return (
30
26
< >
31
27
{ /* Mobile */ }
@@ -48,15 +44,17 @@ const Sidebar = () => {
48
44
< FaBars />
49
45
</ IconButton >
50
46
</ DrawerTrigger >
51
- < DrawerContent maxW = "280px " >
47
+ < DrawerContent maxW = "xs " >
52
48
< DrawerCloseTrigger />
53
49
< DrawerBody >
54
50
< Flex flexDir = "column" justify = "space-between" >
55
51
< Box >
56
52
< SidebarItems />
57
53
< Flex
58
54
as = "button"
59
- onClick = { handleLogout }
55
+ onClick = { ( ) => {
56
+ logout ( )
57
+ } }
60
58
alignItems = "center"
61
59
gap = { 4 }
62
60
px = { 4 }
@@ -67,7 +65,7 @@ const Sidebar = () => {
67
65
</ Flex >
68
66
</ Box >
69
67
{ currentUser ?. email && (
70
- < Text fontSize = "sm" p = { 2 } >
68
+ < Text fontSize = "sm" p = { 2 } truncate maxW = "sm" >
71
69
Logged in as: { currentUser . email }
72
70
</ Text >
73
71
) }
@@ -84,7 +82,7 @@ const Sidebar = () => {
84
82
position = "sticky"
85
83
bg = "bg.subtle"
86
84
top = { 0 }
87
- minW = "280px "
85
+ minW = "xs "
88
86
h = "100vh"
89
87
p = { 4 }
90
88
>
Original file line number Diff line number Diff line change @@ -48,11 +48,10 @@ const ChangePassword = () => {
48
48
Change Password
49
49
</ Heading >
50
50
< Box
51
- w = { { sm : "full" , md : "300px" } }
52
51
as = "form"
53
52
onSubmit = { handleSubmit ( onSubmit ) }
54
53
>
55
- < VStack gap = { 4 } >
54
+ < VStack gap = { 4 } w = { { base : "100%" , md : "sm" } } >
56
55
< PasswordInput
57
56
type = "current_password"
58
57
startElement = { < FiLock /> }
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const UserInformation = () => {
76
76
User Information
77
77
</ Heading >
78
78
< Box
79
- w = { { sm : "full" , md : "50% " } }
79
+ w = { { sm : "full" , md : "sm " } }
80
80
as = "form"
81
81
onSubmit = { handleSubmit ( onSubmit ) }
82
82
>
@@ -86,15 +86,14 @@ const UserInformation = () => {
86
86
{ ...register ( "full_name" , { maxLength : 30 } ) }
87
87
type = "text"
88
88
size = "md"
89
- w = "auto"
90
89
/>
91
90
) : (
92
91
< Text
93
92
fontSize = "md"
94
93
py = { 2 }
95
94
color = { ! currentUser ?. full_name ? "gray" : "inherit" }
96
95
truncate
97
- maxWidth = "250px "
96
+ maxW = "sm "
98
97
>
99
98
{ currentUser ?. full_name || "N/A" }
100
99
</ Text >
@@ -114,10 +113,9 @@ const UserInformation = () => {
114
113
} ) }
115
114
type = "email"
116
115
size = "md"
117
- w = "auto"
118
116
/>
119
117
) : (
120
- < Text fontSize = "md" py = { 2 } truncate maxWidth = "250px ">
118
+ < Text fontSize = "md" py = { 2 } truncate maxW = "sm ">
121
119
{ currentUser ?. email }
122
120
</ Text >
123
121
) }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function Dashboard() {
14
14
< >
15
15
< Container maxW = "full" >
16
16
< Box pt = { 12 } m = { 4 } >
17
- < Text fontSize = "2xl" >
17
+ < Text fontSize = "2xl" truncate maxW = "sm" >
18
18
Hi, { currentUser ?. full_name || currentUser ?. email } 👋🏼
19
19
</ Text >
20
20
< Text > Welcome back, nice to see you again!</ Text >
You can’t perform that action at this time.
0 commit comments