Skip to content

Commit

Permalink
improve metrics for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed May 16, 2024
1 parent 77ee673 commit 90fb984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions client/src/components/apps/alerts.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<template>
<div>

<v-alert
v-for="rule in rules" :key="rule.name"
:text="rule.alert?.annotations.description"
:title="rule.name"
:type="rule.alerting ? 'error' : 'success'"
variant="tonal"
density="compact"
style="transform: scale(0.7); transform-origin: left; margin-bottom: -8px;"
style="transform: scale(0.7); transform-origin: left; margin-bottom: -8px; min-width: 400px;"
></v-alert>
</div>
</template>
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/apps/metrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
</div>
<div v-if="kubero.metricsEnabled">
<v-row class="justify-space-between mb-2">
<v-col cols="8" sm="8" md="8" lg="8" xl="8">
<v-col cols="12" sm="12" md="8">
<Alerts :app="app" :phase="phase" :pipeline="pipeline"/>
</v-col>
<v-col>
<v-col cols="12" sm="12" md="2">
<v-select
label="Select"
v-model="scale"
:items="[ '2h', '24h', '7d' ]"
density="compact"
></v-select>
</v-col>
<v-col>
<v-col cols="12" sm="12" md="2">
<v-btn
block
@click="refreshMetrics()"
Expand Down

0 comments on commit 90fb984

Please sign in to comment.