Skip to content

Commit

Permalink
Merge pull request #2561 from PrefectHQ/dashboard-responsive-enhancem…
Browse files Browse the repository at this point in the history
…ents

Make the dashboard cards more responsive
  • Loading branch information
pleek91 committed Jun 27, 2024
2 parents 99f04c3 + c708bbe commit c687181
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/components/DashboardWorkPoolCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
p-3
border-b
border-default
flex-wrap
}
.dashboard-work-pool-card__name { @apply
Expand All @@ -98,13 +99,15 @@
.dashboard-work-pool-card__mini-bars { @apply
w-1/5
shrink-0
h-6
}
.dashboard-work-pool-card__details { @apply
p-3
grid
grid-cols-4
grid-cols-2
sm:grid-cols-4
gap-y-2
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/FlowRunsAccordionHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@
grid
gap-0.5
grid-cols-1
text-left
}
.flow-runs-accordion-header__time { @apply
text-xs
text-subdued
text-left
}
.flow-runs-accordion-header__count { @apply
Expand Down
6 changes: 4 additions & 2 deletions src/components/WorkspaceDashboardFlowRunsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
<StatisticKeyValue label="total" :value="count" />
</template>
</header>
<FlowRunsBarChart class="workspace-dashboard-flow-runs-card__chart" :filter="flowRunsFilter" />
<FlowRunStateTypeTabs :filter="flowRunsFilter" />
<p-content>
<FlowRunsBarChart class="workspace-dashboard-flow-runs-card__chart" :filter="flowRunsFilter" />
<FlowRunStateTypeTabs :filter="flowRunsFilter" />
</p-content>
</p-card>
</template>

Expand Down

0 comments on commit c687181

Please sign in to comment.