导航栏样式调整

This commit is contained in:
付民康
2025-03-14 16:32:12 +08:00
parent f2a0d29269
commit b7d3afa26f
3 changed files with 33 additions and 27 deletions

View File

@@ -1,12 +1,12 @@
<template>
<div class="g-user-avatar flex-center ml-1" @click="toggleDropDown">
<GAvatar :name="accountInfo.nickname" :src="accountInfo.avatar"></GAvatar>
<GAvatar :width="28" :height="28" :name="accountInfo.nickname" :src="accountInfo.avatar"></GAvatar>
</div>
<d-drawer v-model="visible" class="g-user-drawer-container">
<div class="g-user-drawer">
<div class="g-user-drawer-info">
<div class="g-user-avatar">
<GAvatar :name="accountInfo.nickname" :src="accountInfo.avatar"></GAvatar>
<GAvatar style="width: 28px" :name="accountInfo.nickname" :src="accountInfo.avatar"></GAvatar>
</div>
<div class="g-user-drawer-info-list">
<div class="g-user-drawer-info-list-name">
@@ -107,20 +107,20 @@ const blockList = ref([
{ id: 'myPage', label: '我的主页', to: getRouterLink('homepage') }
],
[
{ id: 'dashboard', label: '工作台', icon: 'gt-member-c', to: getRouterLink('dashboard') },
{ id: 'myIssues', label: '我的 Issue', icon: 'gt-issue-c', to: getRouterLink('issues') },
{ id: 'myDiscuss', label: '我的讨论', icon: 'gt-comment-c', to: getRouterLink('discussionCreated') },
{ id: 'myMR', label: '我的合并请求', icon: 'gt-me-merge-c', to: getRouterLink('merge') },
// { id: 'dashboard', label: '工作台', icon: 'gt-member-c', to: getRouterLink('dashboard') },
// { id: 'myIssues', label: '我的 Issue', icon: 'gt-issue-c', to: getRouterLink('issues') },
// { id: 'myDiscuss', label: '我的讨论', icon: 'gt-comment-c', to: getRouterLink('discussionCreated') },
// { id: 'myMR', label: '我的合并请求', icon: 'gt-me-merge-c', to: getRouterLink('merge') },
{ id: 'notice', label: '消息通知', icon: 'gt-remind-c', to: getRouterLink({ name: 'notice', query: { status: 'all' }}) }
],
[
{ id: 'myOrg', label: '我的组织', icon: 'gt-organizations-c', to: getRouterLink({ name: 'settingOrganization' }) },
{ id: 'myRepo', label: '我的项目', icon: 'gt-folder-c', to: getRouterLink('userRepos') },
{ id: 'myStar', label: '我的 Star', icon: 'gt-star-c', to: getRouterLink('userStars') }
// { id: 'myRepo', label: '我的项目', icon: 'gt-folder-c', to: getRouterLink('userRepos') },
// { id: 'myStar', label: '我的 Star', icon: 'gt-star-c', to: getRouterLink('userStars') }
],
[
{ id: 'personalSetting', label: '个人设置', icon: 'gt-setting-c', to: getRouterLink('setting') },
{ id: 'help', label: '帮助文档', icon: 'gt-file-c', href: 'https://gitcode.com/Gitcode-offical-team/GitCode-Docs/wiki' }
// { id: 'help', label: '帮助文档', icon: 'gt-file-c', href: 'https://gitcode.com/Gitcode-offical-team/GitCode-Docs/wiki' }
],
[
{ id: 'logout', label: '退出登录', icon: 'gt-exit', action: logout }
@@ -132,8 +132,8 @@ const blockList = ref([
@import 'devui-theme/styles-var/devui-var.scss';
.g-user {
&-avatar {
height: 35px;
width: 35px;
height: 30px;
width: 30px;
border-radius: 50%;
cursor: pointer;
margin-left: 2px;