File tree 6 files changed +20
-9
lines changed
6 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 12
12
* ,
13
13
* ::before ,
14
14
* ::after {
15
- --bc : rgb (92 , 92 , 92 );
15
+ --bc : rgb (60 , 60 , 60 );
16
16
}
17
17
}
18
18
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default function Page() {
51
51
52
52
const [ tab , setTab ] = useRouterQueryState ( 'tab' , TABS [ 0 ] . key )
53
53
54
- const currentTab = tab . toString ( )
54
+ const currentTab = tab . toString ( ) || TABS [ 0 ] . key . toString ( )
55
55
return (
56
56
< div className = "relative -mt-12 flex w-full flex-grow flex-col" >
57
57
< CommentSelectionKeysProvider >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useCallback } from 'react'
4
4
import { m } from 'framer-motion'
5
5
import { atom , useAtom , useSetAtom } from 'jotai'
6
6
import Link from 'next/link'
7
- import { usePathname } from 'next/navigation'
7
+ import { usePathname , useRouter } from 'next/navigation'
8
8
import type { DashboardRoute } from '~/app/(dashboard)/routes'
9
9
import type { MouseEventHandler , ReactNode } from 'react'
10
10
@@ -22,11 +22,19 @@ import { ThemeToggle } from './ThemeToggle'
22
22
23
23
export const LayoutHeader = ( ) => {
24
24
const title = useAggregationSelector ( ( s ) => s . seo . title )
25
+ const router = useRouter ( )
25
26
return (
26
27
< header className = "fixed left-0 right-0 top-0 z-[19] border-b-[0.5px] border-zinc-200 bg-white/80 pl-6 backdrop-blur dark:border-neutral-900 dark:bg-zinc-900/80" >
27
28
< nav className = "flex h-16 items-center" >
28
29
< div className = "flex items-center space-x-1 lg:space-x-3" >
29
- < button className = "p-2 text-2xl" > 𝕄</ button >
30
+ < MotionButtonBase
31
+ onClick = { ( ) => {
32
+ router . push ( '/dashboard' )
33
+ } }
34
+ className = "p-2 text-2xl"
35
+ >
36
+ 𝕄
37
+ </ MotionButtonBase >
30
38
< BreadcrumbDivider className = "opacity-20" />
31
39
< Link href = "/" className = "font-bold opacity-90 md:text-base" >
32
40
{ title }
Original file line number Diff line number Diff line change @@ -35,14 +35,15 @@ export const CommentContentCell: Component<{ comment: CommentModel }> = (
35
35
return `${ ref . text . slice ( 0 , 20 ) } ...`
36
36
return (
37
37
< MotionButtonBase
38
+ className = "inline-flex grow"
38
39
onClick = { async ( ) => {
39
40
const url = await apiClient . proxy . helper ( 'url-builder' ) ( ref . id ) . get < {
40
41
data : string
41
42
} > ( )
42
43
window . open ( url ?. data , '_blank' )
43
44
} }
44
45
>
45
- < EllipsisHorizontalTextWithTooltip wrapperClassName = "text-accent inline-block !w-auto max-w-full " >
46
+ < EllipsisHorizontalTextWithTooltip wrapperClassName = "text-left text- accent inline-block !w-0 flex-grow " >
46
47
{ ref . title }
47
48
</ EllipsisHorizontalTextWithTooltip >
48
49
</ MotionButtonBase >
Original file line number Diff line number Diff line change @@ -19,15 +19,16 @@ export const CommentMobileList = () => {
19
19
</ div >
20
20
)
21
21
}
22
- if ( ! isUndefined ( data ) && ! data . pages . length ) {
23
- return < Empty className = "flex-grow" />
24
- }
25
22
26
23
const totalLength =
27
24
data ?. pages . reduce ( ( acc , page ) => {
28
25
return acc + page . data . length
29
26
} , 0 ) || 0
30
27
28
+ if ( totalLength === 0 ) {
29
+ return < Empty className = "flex-grow" />
30
+ }
31
+
31
32
return (
32
33
< OffsetMainLayout className = "relative mt-4" >
33
34
{ isLoading && < AbsoluteCenterSpinner /> }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const Version = () => {
7
7
const { data : version , isLoading } = useQuery ( {
8
8
queryKey : [ 'version' ] ,
9
9
queryFn : ( ) => {
10
- return apiClient . proxy . get < AppInfo > ( )
10
+ return apiClient . proxy . info . get < AppInfo > ( )
11
11
} ,
12
12
refetchInterval : 1000 * 60 * 60 * 24 ,
13
13
} )
@@ -18,6 +18,7 @@ export const Version = () => {
18
18
</ div >
19
19
)
20
20
21
+ console . log ( version , 'a' )
21
22
return (
22
23
< div className = "opacity-60" >
23
24
< p className = "text-center" >
You can’t perform that action at this time.
0 commit comments