2020-06-29 01:55:10 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
v-show="expanded"
|
2020-07-01 02:47:05 +00:00
|
|
|
class="expand-button expanded noselect"
|
2020-06-29 01:55:10 +00:00
|
|
|
@click="$emit('expand', false)"
|
|
|
|
><Icon icon="arrow-up3" /></div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-show="!expanded"
|
2020-07-01 02:47:05 +00:00
|
|
|
class="expand-button noselect"
|
2020-06-29 01:55:10 +00:00
|
|
|
@click="$emit('expand', true)"
|
|
|
|
><Icon icon="arrow-down3" /></div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
expanded: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2020-07-01 02:47:05 +00:00
|
|
|
.expand-button {
|
2020-06-29 01:55:10 +00:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding: .5rem;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--shadow);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
background: var(--shadow-hint);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.expand-dark {
|
|
|
|
.icon {
|
|
|
|
fill: var(--lighten);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--lighten-hint);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--text-light);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|