Skip to content

Commit

Permalink
Opt: header
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyCreeper committed Dec 9, 2023
1 parent 7ab1781 commit d123245
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ const toUserInfo = () => {
link.name
}}</RouterLink>
</div>
<div class="hidden lg:flex lg:flex-1 lg:justify-end items-center">
<div class="hidden lg:flex lg:flex-1 lg:justify-end items-center gap-4">
<DarkModeSwitcher />
<PersonIcon class="ml-4 mr-1 cursor-pointer" @click="toUserInfo" />
<span class="w-[100px] truncate overflow-hidden">{{ info?.username }}</span>
<div class="flex cursor-pointer items-center" @click="toUserInfo">
<PersonIcon />
<span class="max-w-[100px] ml-1 truncate overflow-hidden">{{ info?.username }}</span>
</div>
</div>
</nav>

Expand Down

0 comments on commit d123245

Please sign in to comment.