Added stash menu to release page, returning stashes from stash API to avoid reloading or local interpolation.
This commit is contained in:
@@ -11,9 +11,17 @@
|
||||
v-if="user.stashes?.length > 0"
|
||||
class="section"
|
||||
>
|
||||
<h3 class="heading">Stashes</h3>
|
||||
<div class="section-header">
|
||||
<h3 class="section-heading">Stashes</h3>
|
||||
|
||||
<ul class="stashes nolist">
|
||||
<Icon
|
||||
icon="plus3"
|
||||
class="header-add"
|
||||
@click="showAddStash = true"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<ul class="section-body stashes nolist">
|
||||
<li
|
||||
v-for="stash in user.stashes"
|
||||
:key="stash.id"
|
||||
@@ -94,11 +102,13 @@ export default {
|
||||
@import 'breakpoints';
|
||||
|
||||
.header {
|
||||
padding: .5rem 1rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background: var(--profile);
|
||||
}
|
||||
|
||||
.username {
|
||||
padding: .5rem 1rem;
|
||||
margin: 0;
|
||||
font-size: 1.5rem;
|
||||
color: var(--text-light);
|
||||
@@ -108,7 +118,7 @@ export default {
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: 1rem;
|
||||
padding: 1rem 0;
|
||||
margin: 0 0 1rem 0;
|
||||
}
|
||||
|
||||
@@ -119,8 +129,33 @@ export default {
|
||||
grid-gap: 1rem;
|
||||
}
|
||||
|
||||
.heading {
|
||||
.section-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 0 0 1rem 0;
|
||||
}
|
||||
|
||||
.section-body {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
color: var(--primary);
|
||||
padding: 0 1rem;
|
||||
margin: 0;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.header-add {
|
||||
height: auto;
|
||||
padding: .5rem 1rem;
|
||||
fill: var(--shadow);
|
||||
|
||||
&:hover {
|
||||
fill: var(--primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.stashes-stash {
|
||||
|
||||
Reference in New Issue
Block a user