Skip to content

Commit

Permalink
feat: use DB logo; edit menu width (#391)
Browse files Browse the repository at this point in the history
* feat: new logo

* refactor: rename logo img

* style: menu and logo width
  • Loading branch information
ZonaHex authored Dec 21, 2023
1 parent f4d4311 commit 16d6f29
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 19 deletions.
Binary file removed src/assets/images/logo-text.png
Binary file not shown.
11 changes: 11 additions & 0 deletions src/assets/images/logo-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions src/assets/logo.svg

This file was deleted.

6 changes: 3 additions & 3 deletions src/components/navbar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
a-layout.navbar
a-layout-header
.logo-space
img.logo-text-img(alt="logo" src="/src/assets/images/logo-text.png")
img.logo-text-img(alt="logo" src="/src/assets/images/logo-text.svg")
a-layout-content
.new-query
a-button(type="primary" @click="openQuery")
Expand Down Expand Up @@ -107,12 +107,12 @@ a-layout.navbar
}
.logo-space {
height: 64px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
.logo-text-img {
height: 32px;
height: 30px;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/layout/default-layout.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="pug">
a-layout.layout-container
a-layout-sider.main-sider(:width="258")
a-layout-sider.main-sider(:width="242")
Navbar(v-if="navbar")
a-layout-content.layout-content
PageLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ a-card(v-if="hasChart" :bordered="false")
})
const drawChart = () => {
const MENU_WIDTH = 258
const MENU_WIDTH = 242
const modalElement = ref<any>()
modalElement.value = document.getElementsByClassName('query-modal')[0]
const isFullScreen = modalElement.value.classList?.contains('full-screen')
Expand Down
2 changes: 1 addition & 1 deletion src/views/dashboard/modules/query-modal/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ a-modal.query-modal(
const HEADER_HEIGHT = 60
const MODAL_TO_TOP = 16
const MENU_WIDTH = 258
const MENU_WIDTH = 242
const isFullscreen = ref(false)
const isLeft = ref(false)
Expand Down
2 changes: 1 addition & 1 deletion src/views/dashboard/query/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ a-layout.layout
const { logs } = storeToRefs(useLogStore())
const { getResultsByType } = useQueryCode()
const MENU_WIDTH = 258 + 16
const MENU_WIDTH = 242 + 16
const MODAL_WIDTH = 636
const OTHERS_WIDTH = `${MENU_WIDTH + MODAL_WIDTH}px`
const RESIZE_BOX_WIDTH = 12
Expand Down

0 comments on commit 16d6f29

Please sign in to comment.