misc fixes

This commit is contained in:
axolotle
2021-06-30 14:49:07 +02:00
parent 985da08730
commit 626673c0af
4 changed files with 21 additions and 4 deletions
+9 -1
View File
@@ -83,7 +83,7 @@ export default {
}, },
onNodeViewClick (e, parentIndex, childIndex) { onNodeViewClick (e, parentIndex, childIndex) {
if (e.target.classList.contains('btn')) return if (e.target.classList.contains('btn') || window.innerWidth < 1024) return
const parentIsLast = parentIndex === this.nodes.length - 1 const parentIsLast = parentIndex === this.nodes.length - 1
const childIsLast = childIndex !== undefined const childIsLast = childIndex !== undefined
? childIndex === this.nodes[parentIndex].children.length - 1 ? childIndex === this.nodes[parentIndex].children.length - 1
@@ -110,6 +110,10 @@ export default {
.node-book { .node-book {
min-height: 100%; min-height: 100%;
@include media-breakpoint-down($layout-bp-down) {
background-color: $white;
}
@include media-breakpoint-up($layout-bp) { @include media-breakpoint-up($layout-bp) {
height: 100%; height: 100%;
@@ -172,6 +176,10 @@ export default {
} }
&:not(.active) { &:not(.active) {
.node-view {
cursor: pointer;
}
::v-deep { ::v-deep {
.node-view { .node-view {
// overflow-y: hidden; // overflow-y: hidden;
+4
View File
@@ -76,6 +76,10 @@ export default {
// compensate header border // compensate header border
height: calc(100% + 2px); height: calc(100% + 2px);
top: calc(-100% - 2px); top: calc(-100% - 2px);
@include media-breakpoint-down($layout-bp-down) {
margin-bottom: -100vh;
}
} }
} }
</style> </style>
+2
View File
@@ -114,6 +114,8 @@ export default {
} }
.dropdown-menu { .dropdown-menu {
border: 0;
@include media-breakpoint-down($size-bp-down) { @include media-breakpoint-down($size-bp-down) {
width: 100vw; width: 100vw;
} }
+6 -3
View File
@@ -84,10 +84,13 @@ export default {
.library-list { .library-list {
overflow-y: auto; overflow-y: auto;
height: 100%; height: 100%;
padding: 0 1.15rem;
@include media-breakpoint-up($size-bp) { &-container {
padding: 0 2.15rem; padding: 1.15rem;
@include media-breakpoint-up($size-bp) {
padding: 2.15rem;
}
} }
h3 { h3 {