44 ChangeSkinIcon ,
55 CompassIcon ,
66 DownloadIcon ,
7+ ExternalIcon ,
78 HomeIcon ,
89 LeftArrowIcon ,
910 LibraryIcon ,
@@ -18,6 +19,7 @@ import {
1819 RestoreIcon ,
1920 RightArrowIcon ,
2021 SettingsIcon ,
22+ UserIcon ,
2123 WorldIcon ,
2224 XIcon ,
2325} from ' @modrinth/assets'
@@ -69,7 +71,7 @@ import { debugAnalytics, initAnalytics, optOutAnalytics, trackEvent } from '@/he
6971import { get_user } from ' @/helpers/cache.js'
7072import { command_listener , warning_listener } from ' @/helpers/events.js'
7173import { useFetch } from ' @/helpers/fetch.js'
72- import { cancelLogin , get as getCreds , login , logout } from ' @/helpers/mr_auth.js '
74+ import { cancelLogin , get as getCreds , login , logout } from ' @/helpers/mr_auth.ts '
7375import { list } from ' @/helpers/profile.js'
7476import { get as getSettings , set as setSettings } from ' @/helpers/settings.ts'
7577import { get_opening_command , initialize_state } from ' @/helpers/state'
@@ -817,29 +819,39 @@ provideAppUpdateDownloadProgress(appUpdateDownload)
817819 >
818820 < SettingsIcon / >
819821 < / NavButton>
820- < ButtonStyled v- if = " credentials" type= " transparent" circular>
821- < OverflowMenu
822- : options= " [
823- {
824- id: 'sign-out',
825- action: () => logOut(),
826- color: 'danger',
827- },
828- ]"
829- direction= " left"
830- >
831- < Avatar
832- : src= " credentials.user.avatar_url"
833- : alt= " credentials.user.username"
834- size= " 32px"
835- circle
836- / >
837- < template #sign- out> < LogOutIcon / > Sign out < / template>
838- < / OverflowMenu>
839- < / ButtonStyled>
840- < NavButton v- else v- tooltip .right = " 'Sign in'" : to= " () => signIn()" >
841- < LogInIcon / >
842- < template #label> Sign in < / template>
822+ < OverflowMenu
823+ v- if = " credentials"
824+ v- tooltip .right = " `Modrinth account`"
825+ class = " w-12 h-12 text-primary rounded-full flex items-center justify-center text-2xl transition-all bg-transparent hover:bg-button-bg hover:text-contrast border-0 cursor-pointer"
826+ : options= " [
827+ {
828+ id: 'view-profile',
829+ action: () => openUrl('https://modrinth.com/user/' + credentials.user.username),
830+ },
831+ {
832+ id: 'sign-out',
833+ action: () => logOut(),
834+ color: 'danger',
835+ },
836+ ]"
837+ placement= " right-end"
838+ >
839+ < Avatar : src= " credentials.user.avatar_url" alt= " " size= " 32px" circle / >
840+ < template #view- profile>
841+ < UserIcon / >
842+ < span class = " inline-flex items-center gap-1" >
843+ Signed in as
844+ < span class = " inline-flex items-center gap-1 text-contrast font-semibold" >
845+ < Avatar : src= " credentials.user.avatar_url" alt= " " size= " 20px" circle / >
846+ {{ credentials .user .username }}
847+ < / span>
848+ < / span>
849+ < ExternalIcon / >
850+ < / template>
851+ < template #sign- out> < LogOutIcon / > Sign out < / template>
852+ < / OverflowMenu>
853+ < NavButton v- else v- tooltip .right = " 'Sign in to a Modrinth account'" : to= " () => signIn()" >
854+ < LogInIcon class = " text-brand" / >
843855 < / NavButton>
844856 < / div>
845857 < div data- tauri- drag- region class = " app-grid-statusbar bg-bg-raised h-[--top-bar-height] flex" >
@@ -979,19 +991,19 @@ provideAppUpdateDownloadProgress(appUpdateDownload)
979991 < div id= " sidebar-teleport-target" class = " sidebar-teleport-content" >< / div>
980992 < div class = " sidebar-default-content" : class = " { 'sidebar-enabled': sidebarVisible }" >
981993 < div class = " p-4 border-0 border-b-[1px] border-[--brand-gradient-border] border-solid" >
982- < h3 class = " text-lg m-0" > Playing as< / h3>
994+ < h3 class = " text-base text-primary font-medium m-0" > Playing as< / h3>
983995 < suspense>
984996 < AccountsCard ref= " accounts" mode= " small" / >
985997 < / suspense>
986998 < / div>
987- < div class = " p -4 border-0 border-b-[1px] border-[--brand-gradient-border] border-solid" >
999+ < div class = " py -4 border-0 border-b-[1px] border-[--brand-gradient-border] border-solid" >
9881000 < suspense>
9891001 < FriendsList : credentials= " credentials" : sign- in = " () => signIn()" / >
9901002 < / suspense>
9911003 < / div>
992- < div v- if = " news && news.length > 0" class = " pt -4 flex flex-col items-center" >
993- < h3 class = " px- 4 text-lg m-0 text-left w-full" > News< / h3>
994- < div class = " px-4 pt-2 space-y-4 flex flex-col items-center w-full" >
1004+ < div v- if = " news && news.length > 0" class = " p -4 flex flex-col items-center" >
1005+ < h3 class = " text-base mb- 4 text-primary font-medium m-0 text-left w-full" > News< / h3>
1006+ < div class = " space-y-4 flex flex-col items-center w-full" >
9951007 < NewsArticleCard
9961008 v- for = " (item, index) in news"
9971009 : key= " `news-${index}`"
0 commit comments