Skip to content

Commit

Permalink
working history ux
Browse files Browse the repository at this point in the history
  • Loading branch information
msfrisbie committed Jan 13, 2023
1 parent f386c6d commit 33b04f1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/overlay-widget/package/PackageHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
>
<b-tab no-body title="Tree" active>
<b-dropdown
v-if="parentTree"
v-if="ancestorTree"
class="pb-2"
toggle-class="flex flex-row items-center gap-2"
variant="outline-primary"
Expand Down Expand Up @@ -84,16 +84,18 @@
v-bind:key="i"
class="flex flex-row gap-8"
>
<div class="w-16 text-center text-xl">{{ i }}</div>
<div class="grid grid-cols-3 gap-2">
<div class="w-48 text-right text-xl whitespace-nowrap">
{{ i === 0 ? "Source Package" : `Generation #${i}` }}
</div>
<div class="grid grid-cols-2 gap-2">
<package-history-tile
v-for="node of generation"
v-bind:key="node.label"
:ancestorTree="node"
:depth="0"
:maxDepth="0"
:isOrigin="node.label === sourcePackage.Label"
v-bind:class="{ 'col-span-3': node.label === sourcePackage.Label }"
v-bind:class="{ 'col-span-2': node.label === sourcePackage.Label }"
></package-history-tile>
</div>
</div>
Expand Down Expand Up @@ -197,16 +199,18 @@
v-bind:key="i"
class="flex flex-row gap-8"
>
<div class="w-16 text-center text-xl">{{ i }}</div>
<div class="grid grid-cols-3 gap-2">
<div class="w-48 text-right text-xl whitespace-nowrap">
{{ i === 0 ? "Source Package" : `Generation #${i}` }}
</div>
<div class="grid grid-cols-2 gap-2">
<package-history-tile
v-for="node of generation"
v-bind:key="node.label"
:childTree="node"
:depth="0"
:maxDepth="0"
:isOrigin="node.label === sourcePackage.Label"
v-bind:class="{ 'col-span-3': node.label === sourcePackage.Label }"
v-bind:class="{ 'col-span-2': node.label === sourcePackage.Label }"
></package-history-tile>
</div>
</div>
Expand Down

0 comments on commit 33b04f1

Please sign in to comment.