Fix drawer contents overflow (#329)

This commit is contained in:
Rijk van Zanten
2020-04-06 18:21:21 -04:00
committed by GitHub
parent 39311982f7
commit 6a87fbb0c6
5 changed files with 76 additions and 61 deletions

View File

@@ -43,6 +43,7 @@ export default defineComponent({
<style lang="scss" scoped>
.drawer-button {
position: relative;
flex-shrink: 0;
width: 100%;
height: 64px;
color: var(--foreground-normal);

View File

@@ -33,3 +33,9 @@ export default defineComponent({
},
});
</script>
<style lang="scss" scoped>
.drawer-detail-group {
display: contents;
}
</style>

View File

@@ -8,7 +8,7 @@
{{ title }}
</div>
</button>
<transition-expand>
<transition-expand class="scroll-container">
<div v-show="active">
<div class="content">
<slot />
@@ -43,8 +43,11 @@ export default defineComponent({
<style lang="scss" scoped>
.drawer-detail {
display: contents;
.toggle {
position: relative;
flex-shrink: 0;
width: 100%;
height: 64px;
color: var(--foreground-normal);
@@ -76,6 +79,12 @@ export default defineComponent({
transform: translateY(-50%);
}
.scroll-container {
flex-grow: 1;
overflow-x: hidden;
overflow-y: auto;
}
.content {
padding: 12px;
}

View File

@@ -212,6 +212,7 @@ export default defineComponent({
flex-direction: column;
width: 284px;
height: 100%;
overflow: hidden;
background-color: var(--background-normal);
transform: translateX(100%);
transition: transform var(--slow) var(--transition);