mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-13 20:14:42 +00:00
Merge branch '309-add-logo-to-hamburger-menu' into 'develop'
Add logo and sitename to the side drawer area Closes #309 See merge request pleroma/pleroma-fe!517
This commit is contained in:
commit
448317338e
2 changed files with 29 additions and 3 deletions
|
@ -26,6 +26,12 @@ const SideDrawer = {
|
||||||
},
|
},
|
||||||
suggestionsEnabled () {
|
suggestionsEnabled () {
|
||||||
return this.$store.state.instance.suggestionsEnabled
|
return this.$store.state.instance.suggestionsEnabled
|
||||||
|
},
|
||||||
|
logo () {
|
||||||
|
return this.$store.state.instance.logo
|
||||||
|
},
|
||||||
|
sitename () {
|
||||||
|
return this.$store.state.instance.name
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -8,8 +8,11 @@
|
||||||
@touchmove="touchMove"
|
@touchmove="touchMove"
|
||||||
>
|
>
|
||||||
<div class="side-drawer-heading" @click="toggleDrawer">
|
<div class="side-drawer-heading" @click="toggleDrawer">
|
||||||
<user-card-content :user="currentUser" :switcher="false" :hideBio="true" v-if="currentUser">
|
<user-card-content :user="currentUser" :switcher="false" :hideBio="true" v-if="currentUser"/>
|
||||||
</user-card-content>
|
<div class="side-drawer-logo-wrapper" v-else>
|
||||||
|
<img :src="logo"/>
|
||||||
|
<span>{{sitename}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-if="currentUser" @click="toggleDrawer">
|
<li v-if="currentUser" @click="toggleDrawer">
|
||||||
|
@ -141,6 +144,24 @@
|
||||||
background-color: var(--bg, $fallback--bg);
|
background-color: var(--bg, $fallback--bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.side-drawer-logo-wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0.85em;
|
||||||
|
|
||||||
|
img {
|
||||||
|
flex: none;
|
||||||
|
height: 50px;
|
||||||
|
margin-right: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.side-drawer-click-outside-closed {
|
.side-drawer-click-outside-closed {
|
||||||
flex: 0 0 0;
|
flex: 0 0 0;
|
||||||
}
|
}
|
||||||
|
@ -154,7 +175,6 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 7em;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue