Skip to content

Commit

Permalink
feat: update panel spacings
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Pestov committed Nov 15, 2022
1 parent 44a433e commit 89de13f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/components/Content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ export default {
flex: 1;
flex-direction: column;
overflow: auto;
padding: 8px;
}
.rtl {
Expand Down
2 changes: 0 additions & 2 deletions src/components/annotations/AnnotationsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,5 @@ export default {
.item-content {
overflow: auto;
padding: 8px;
padding-bottom: 72px; // fab icon size + one times the offset of q-page-sticky
}
</style>
2 changes: 1 addition & 1 deletion src/components/metadata/Metadata.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="metadata-container q-pa-md q-pt-md">
<div class="metadata-container">
<CollectionMetadata v-if="options.collection?.all" />
<ManifestMetadata v-if="options.manifest?.all" />
<ItemMetadata v-if="options.manifest?.all" />
Expand Down
12 changes: 7 additions & 5 deletions src/components/panels/Panel.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="item-content" :class="$q.dark.isActive ? 'bg-grey-9' : 'bg-white'">
<div class="panel-header q-py-xs q-pr-sm q-pl-md flex justify-between items-center">
<div class="panel-header q-py-xs q-pt-md q-px-md flex justify-between items-center">
<div class="caption text-bold text-body1">
<!-- We display the tab label as panel label when there is only one tab -->
<span v-if="panel.label && tabs.length > 1 || tabs.length === 0">{{ $t(panel.label) }}</span>
Expand All @@ -14,8 +14,8 @@
</template>
</div>
</div>
<q-separator />
<div class="panel-body bg-none">
<q-separator class="q-mx-md" />
<div class="panel-body bg-none q-px-md">
<Loading v-if="isLoading" />
<template v-if="tabs.length > 1">
<div class="tabs-container">
Expand All @@ -31,13 +31,15 @@
</q-tabs>
</div>
<q-tab-panels v-model="activeTabIndex" class="bg-transparent" animated transition-next="fade" transition-prev="fade">
<q-tab-panel v-for="(tab, i) in tabs" :key="i" :name="i" class="q-pa-none">
<q-tab-panel v-for="(tab, i) in tabs" :key="i" :name="i" class="q-pa-none q-pt-md">
<component :is="tab.component" :key="tab.id" v-bind="tab.props" />
</q-tab-panel>
</q-tab-panels>
</template>
<template v-else-if="tabs.length === 1">
<component :is="tabs[0].component" :key="tabs[0].id" v-bind="tabs[0].props" @loading="isLoading = $event" />
<div class="q-pt-md">
<component :is="tabs[0].component" :key="tabs[0].id" v-bind="tabs[0].props" @loading="isLoading = $event" />
</div>
</template>
<Notification
v-else
Expand Down
2 changes: 0 additions & 2 deletions src/css/tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@
}

.q-tree {
padding: 8px;

> .q-tree__node--child {
> .q-tree__node-header {
padding-left: 8px;
Expand Down

0 comments on commit 89de13f

Please sign in to comment.