Skip to content

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

fix: logo size (#17920)

ecmadao66ef51f82a49
diff --git a/frontend/src/components/BytebaseLogo.vue b/frontend/src/components/BytebaseLogo.vue
index 0238134e96..656d2702f8 100644
--- a/frontend/src/components/BytebaseLogo.vue
+++ b/frontend/src/components/BytebaseLogo.vue
@@ -1,6 +1,6 @@
<template>
<div
- class="flex-shrink-0 w-44 min-h-[4rem] flex items-center overflow-y-hidden"
+ class="flex-shrink-0 max-w-44 flex items-center overflow-hidden"
@click="recordRedirect"
>
<component
@@ -8,19 +8,18 @@
:to="{
name: redirect,
}"
- class="w-full select-none flex flex-row justify-center items-center"
- active-class=""
- exact-active-class=""
+ class="h-full w-full select-none flex flex-row justify-center items-center"
>
<img
v-if="customBrandingLogo"
:src="customBrandingLogo"
- class="w-auto max-w-full my-3"
+ alt="branding logo"
+ class="h-full object-contain"
/>
<img
v-else
- class="h-8 md:h-10 w-auto"
+ class="h-8 md:h-10 w-auto object-contain"
src="@/assets/logo-full.svg"
alt="Bytebase"
/>
diff --git a/frontend/src/components/v2/Sidebar/CommonSidebar.vue b/frontend/src/components/v2/Sidebar/CommonSidebar.vue
index d23ab9f1ce..3315e85fbc 100644
--- a/frontend/src/components/v2/Sidebar/CommonSidebar.vue
+++ b/frontend/src/components/v2/Sidebar/CommonSidebar.vue
@@ -4,7 +4,7 @@
>
<BytebaseLogo
v-if="showLogo"
- class="w-full px-4 shrink-0"
+ class="p-2 shrink-0 m-auto"
:redirect="logoRedirect"
/>
<slot name="prefix" />
diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vue
index 259beb2ece..0174d83150 100644
--- a/frontend/src/views/DashboardHeader.vue
+++ b/frontend/src/views/DashboardHeader.vue
@@ -2,7 +2,7 @@
<div class="flex items-center justify-between h-10 px-4 my-1 space-x-3">
<BytebaseLogo
v-if="showLogo"
- class="shrink-0"
+ class="h-10"
:redirect="WORKSPACE_ROUTE_LANDING"
/>
<ProjectSwitchPopover />