Skip to content

Commit

Permalink
UI optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
tongwl committed Nov 6, 2023
1 parent f23b6de commit 5ac8ce3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import * as monaco from 'monaco-editor'
import { format } from 'sql-formatter'
import EditorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker'
import { editorProps } from './type'
import { editorProps } from './types'
import { useEditorStore } from '@/pinia/editor'
import { ref, toRaw, watch, onBeforeUnmount, onMounted } from 'vue'

Expand Down
38 changes: 20 additions & 18 deletions kyuubi-server/web-ui/src/layout/components/aside/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<header>
<img v-if="!isCollapse" src="@/assets/kyuubi-logo.svg" />
<img v-else class="collapsed-logo" src="@/assets/kyuubi.png" />
<pre v-if="!isCollapse">{{ version }}</pre>
<span v-if="!isCollapse">{{ version }}</span>
</header>
<c-menu :is-collapse="isCollapse" :active-path="activePath" :menus="menus" />
</template>
Expand All @@ -42,35 +42,37 @@
</script>

<style lang="scss" scoped>
$height: 64px;
header {
width: 100%;
position: absolute;
top: 0;
left: 0;
height: 64px;
padding-left: 16px;
line-height: 64px;
height: $height;
line-height: $height;
padding: 0 16px;
display: flex;
align-items: flex-end;
justify-content: space-between;
box-sizing: border-box;
img {
display: inline-block;
width: 140px;
height: 50px;
top: -10px;
position: relative;
vertical-align: middle;
&.collapsed-logo {
width: 40px;
height: 40px;
position: relative;
top: -4px;
left: -4px;
}
}
pre {
span {
position: relative;
top: 17px;
font-size: 10px;
display: inline-block;
width: 100px;
margin-top: 20px;
text-align: center;
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
color: rgba(255, 255, 255, 0.87);
}
.collapsed-logo {
width: 40px;
height: 40px;
margin-top: 30px;
}
}
.el-menu {
margin-top: 64px;
Expand Down
1 change: 0 additions & 1 deletion kyuubi-server/web-ui/src/views/swagger/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

<template>
<main>
Swagger
<div id="swagger-ui" class="swagger-ui"> </div>
</main>
</template>
Expand Down

0 comments on commit 5ac8ce3

Please sign in to comment.