refine sidebar
This commit is contained in:
1 parent
b65e3f90f6
commit
fa06709410
3 files changed
+28
-7
No files matched your search
@@ -2,8 +2,8 @@
|
|||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div v-for="(link, linkIndex) in links" :key="linkIndex" class="link">
|
<div v-for="(link, linkIndex) in links" :key="linkIndex" class="link">
|
||||||
<el-button @click="$router.push(link.route)">
|
<el-button class="button" @click="$router.push(link.route)">
|
||||||
<font-awesome-icon icon="fa-solid fa-question" />
|
<font-awesome-icon :icon="link.icon" />
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -30,13 +30,13 @@ export default defineComponent({
|
|||||||
route: {
|
route: {
|
||||||
name: ROUTE_CHAT_INDEX
|
name: ROUTE_CHAT_INDEX
|
||||||
},
|
},
|
||||||
icon: 'fa-question'
|
icon: 'fa-regular fa-comment'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
route: {
|
route: {
|
||||||
name: 'midjourney-index'
|
name: 'midjourney-index'
|
||||||
},
|
},
|
||||||
icon: 'fa-question'
|
icon: 'fa-solid fa-palette'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@@ -48,10 +48,28 @@ export default defineComponent({
|
|||||||
.sidebar {
|
.sidebar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-end;
|
align-items: center;
|
||||||
.top {
|
.top {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
padding-top: 10px;
|
||||||
|
.link {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
// border-radius: 5px;
|
||||||
|
.button {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 10px;
|
||||||
|
border: none;
|
||||||
|
background-color: var(--el-bg-color-page);
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
background-color: var(--el-button-hover-bg-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.bottom {
|
.bottom {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -29,9 +29,10 @@ export default defineComponent({
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
.left {
|
.left {
|
||||||
width: 50px;
|
width: 60px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: aqua;
|
// background-color: aqua;
|
||||||
|
border-right: 1px solid var(--el-border-color);
|
||||||
}
|
}
|
||||||
.main {
|
.main {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
faMicrophone as faSolidMicrophone,
|
faMicrophone as faSolidMicrophone,
|
||||||
faStop as faSolidStop,
|
faStop as faSolidStop,
|
||||||
|
faPalette as faSolidPalette,
|
||||||
faBars as faSolidBars,
|
faBars as faSolidBars,
|
||||||
faGear as faSolidGear,
|
faGear as faSolidGear,
|
||||||
faRotateRight as faSolidRotateRight,
|
faRotateRight as faSolidRotateRight,
|
||||||
@@ -45,3 +46,4 @@ library.add(faRegularPaperPlane);
|
|||||||
library.add(faRegularComment);
|
library.add(faRegularComment);
|
||||||
library.add(faSolidArrowRightFromBracket);
|
library.add(faSolidArrowRightFromBracket);
|
||||||
library.add(faSolidTrash);
|
library.add(faSolidTrash);
|
||||||
|
library.add(faSolidPalette);
|
||||||
Reference in new issue
Block a user