mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-30 18:13:23 +08:00
if collection panel in multiview, make width uniform
This commit is contained in:
@@ -31,6 +31,7 @@ interface Props {
|
||||
selectedCollections: CollectionEntry[];
|
||||
showControls?: boolean;
|
||||
filterable?: boolean;
|
||||
multiView?: boolean;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
@@ -134,7 +135,7 @@ watch(
|
||||
{{ errorMessageAsString(error) }}
|
||||
</Alert>
|
||||
<ExpandedItems v-else v-slot="{ isExpanded, setExpanded }" :scope-key="dsc.id" :get-item-key="getItemKey">
|
||||
<section class="dataset-collection-panel w-100 d-flex flex-column">
|
||||
<section class="dataset-collection-panel w-100 d-flex flex-column" :class="{ 'compact-panel': multiView }">
|
||||
<section>
|
||||
<CollectionNavigation
|
||||
:history-name="history.name"
|
||||
@@ -183,3 +184,9 @@ watch(
|
||||
</section>
|
||||
</ExpandedItems>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.compact-panel {
|
||||
max-width: 15rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -85,6 +85,7 @@ function onViewCollection(collection: object) {
|
||||
:history="history"
|
||||
:selected-collections.sync="selectedCollections"
|
||||
:show-controls="false"
|
||||
multi-view
|
||||
@view-collection="onViewCollection" />
|
||||
|
||||
<HistoryPanel
|
||||
|
||||
Reference in New Issue
Block a user