Made big improvements to library page in preparation of adding library nodes to character sheets

This commit is contained in:
Stefan Zermatten
2019-11-04 13:27:31 +02:00
parent f4d613a20b
commit f6d80f6ae4
13 changed files with 345 additions and 210 deletions

View File

@@ -20,8 +20,17 @@
example > bread > crumb
</v-card-text>
</template>
<slot name="unwrapped-content"/>
<v-card-text id="base-dialog-body" v-scroll:#base-dialog-body="onScroll">
<div
v-if="$slots['unwrapped-content']"
class="unwrapped-content"
>
<slot name="unwrapped-content"/>
</div>
<v-card-text
v-if="!$slots['unwrapped-content']"
id="base-dialog-body"
v-scroll:#base-dialog-body="onScroll"
>
<v-tabs-items :value="isEditing ? 1 : 0" touchless>
<v-tab-item>
<slot/>
@@ -32,7 +41,7 @@
</v-tabs-items>
</v-card-text>
<v-card-actions>
<slot name="actions"></slot>
<slot name="actions"/>
</v-card-actions>
</v-layout>
</template>
@@ -73,7 +82,7 @@
z-index: 1;
border-radius: 2px 2px 0 0;
}
#base-dialog-body {
#base-dialog-body, .unwrapped-content {
flex-grow: 1;
overflow: auto;
}

View File

@@ -2,6 +2,7 @@ import AttributeDialog from '/imports/ui/properties/attributes/AttributeDialog.v
import AttributeDialogContainer from '/imports/ui/properties/attributes/AttributeDialogContainer.vue';
import AttributeCreationDialog from '/imports/ui/properties/attributes/AttributeCreationDialog.vue';
import CreaturePropertyCreationDialog from '/imports/ui/creature/creatureProperties/CreaturePropertyCreationDialog.vue';
import CreaturePropertyFromLibraryDialog from '/imports/ui/creature/creatureProperties/CreaturePropertyFromLibraryDialog.vue'
import FeatureCreationDialog from '/imports/ui/properties/features/FeatureCreationDialog.vue';
import FeatureDialogContainer from '/imports/ui/properties/features/FeatureDialogContainer.vue';
import LibraryCreationDialog from '/imports/ui/library/LibraryCreationDialog.vue';
@@ -14,6 +15,7 @@ export default {
AttributeDialogContainer,
AttributeCreationDialog,
CreaturePropertyCreationDialog,
CreaturePropertyFromLibraryDialog,
FeatureCreationDialog,
FeatureDialogContainer,
LibraryCreationDialog,