Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: condense dashboard header (#7955)

Tianzhou (天舟)dd16d4e2ac87
diff --git a/frontend/src/components/BytebaseLogo.vue b/frontend/src/components/BytebaseLogo.vue
index 06b952710a..2322c7c813 100644
--- a/frontend/src/components/BytebaseLogo.vue
+++ b/frontend/src/components/BytebaseLogo.vue
@@ -11,12 +11,12 @@
<img
v-if="customBrandingLogo"
:src="customBrandingLogo"
- class="w-auto max-w-full h-auto max-h-12"
+ class="w-auto max-w-full h-8 md:max-h-10"
/>
<img
v-if="!customBrandingLogo"
- class="h-12 w-auto"
+ class="h-8 md:h-10 w-auto"
src="../assets/logo-full.svg"
alt="Bytebase"
/>
diff --git a/frontend/src/components/ProfileBrandingLogo.vue b/frontend/src/components/ProfileBrandingLogo.vue
index 92a3d0571f..3879aeaa7c 100644
--- a/frontend/src/components/ProfileBrandingLogo.vue
+++ b/frontend/src/components/ProfileBrandingLogo.vue
@@ -1,7 +1,7 @@
<template>
<div
class="flex justify-center items-center bg-gray-100 rounded-3xl"
- :class="customBrandingLogo ? 'p-2' : ''"
+ :class="customBrandingLogo ? 'px-2 py-1.5' : ''"
>
<img
v-if="customBrandingLogo"
diff --git a/frontend/src/components/ProfileDropdown.vue b/frontend/src/components/ProfileDropdown.vue
index c5d3741759..7856a80d8e 100644
--- a/frontend/src/components/ProfileDropdown.vue
+++ b/frontend/src/components/ProfileDropdown.vue
@@ -9,7 +9,7 @@
@click.prevent="menu.toggle()"
@contextmenu.capture.prevent="menu.toggle()"
>
- <UserAvatar :user="currentUserV1" />
+ <UserAvatar :size="'SMALL'" :user="currentUserV1" />
</button>
<BBContextMenu ref="menu" class="origin-top-left mt-2 w-48">
<router-link
diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vue
index 15d711c5ca..246baf5651 100644
--- a/frontend/src/views/DashboardHeader.vue
+++ b/frontend/src/views/DashboardHeader.vue
@@ -1,5 +1,5 @@
<template>
- <div class="flex items-center justify-between h-16 pl-2 pr-4">
+ <div class="flex items-center justify-between h-10 pl-2 pr-4">
<div class="flex items-center">
<BytebaseLogo class="block md:hidden" />
@@ -8,14 +8,14 @@
<router-link
v-if="shouldShowIssueEntry"
to="/issue"
- class="bar-link px-2 py-2 rounded-md"
+ class="bar-link px-2 py-1 rounded-md"
:class="getRouteLinkClass('/issue')"
>{{ $t("common.issues") }}</router-link
>
<router-link
to="/project"
- class="bar-link px-2 py-2 rounded-md"
+ class="bar-link px-2 py-1 rounded-md"
:class="getRouteLinkClass('/project')"
data-label="bb-header-project-button"
>
@@ -24,7 +24,7 @@
<router-link
to="/db"
- class="bar-link px-2 py-2 rounded-md"
+ class="bar-link px-2 py-1 rounded-md"
:class="getRouteLinkClass('/db')"
data-label="bb-dashboard-header-database-entry"
>{{ $t("common.databases") }}</router-link
@@ -33,20 +33,20 @@
<router-link
v-if="shouldShowInstanceEntry"
to="/instance"
- class="bar-link px-2 py-2 rounded-md"
+ class="bar-link px-2 py-1 rounded-md"
:class="getRouteLinkClass('/instance')"
>{{ $t("common.instances") }}</router-link
>
<router-link
to="/environment"
- class="bar-link px-2 py-2 rounded-md"
+ class="bar-link px-2 py-1 rounded-md"
:class="getRouteLinkClass('/environment')"
>{{ $t("common.environments") }}</router-link
>
<router-link
to="/setting/member"
- class="bar-link px-2 py-2 rounded-md"
+ class="bar-link px-2 py-1 rounded-md"
:class="getRouteLinkClass('/setting')"
>{{ $t("common.settings") }}</router-link
>
@@ -111,16 +111,16 @@
</div>
<div
v-if="currentPlan === PlanType.FREE"
- class="flex justify-between items-center min-w-fit px-4 py-2 bg-emerald-500 text-sm font-medium text-white rounded-md cursor-pointer"
+ class="flex justify-between items-center min-w-fit px-4 py-1 bg-emerald-500 text-sm font-medium text-white rounded-md cursor-pointer"
@click="handleWantHelp"
>
<span class="hidden lg:block mr-2">{{ $t("common.want-help") }}</span>
- <heroicons-outline:chat-bubble-left-right class="w-5 h-5" />
+ <heroicons-outline:chat-bubble-left-right class="w-4 h-4" />
</div>
<router-link to="/inbox" exact-active-class="">
<span
v-if="inboxSummary.unread > 0"
- class="absolute rounded-full ml-4 -mt-1 h-2.5 w-2.5 bg-accent opacity-75"
+ class="absolute rounded-full ml-4 -mt-1 h-2 w-2 bg-accent opacity-75"
></span>
<heroicons-outline:bell class="w-6 h-6" />
</router-link>
@@ -157,32 +157,32 @@
<router-link
v-if="shouldShowIssueEntry"
to="/issue"
- class="bar-link rounded-md block px-3 py-2"
+ class="bar-link rounded-md block px-3 py-1"
>
{{ $t("common.issues") }}
</router-link>
- <router-link to="/project" class="bar-link rounded-md block px-3 py-2">
+ <router-link to="/project" class="bar-link rounded-md block px-3 py-1">
{{ $t("common.projects") }}
</router-link>
- <router-link to="/db" class="bar-link rounded-md block px-3 py-2">
+ <router-link to="/db" class="bar-link rounded-md block px-3 py-1">
{{ $t("common.databases") }}
</router-link>
- <router-link to="/instance" class="bar-link rounded-md block px-3 py-2">{{
+ <router-link to="/instance" class="bar-link rounded-md block px-3 py-1">{{
$t("common.instances")
}}</router-link>
<router-link
to="/environment"
- class="bar-link rounded-md block px-3 py-2"
+ class="bar-link rounded-md block px-3 py-1"
>{{ $t("common.environments") }}</router-link
>
<router-link
to="/setting/member"
- class="bar-link rounded-md block px-3 py-2"
+ class="bar-link rounded-md block px-3 py-1"
>{{ $t("common.settings") }}</router-link
>
</div>