Skip to content

Commit

Permalink
fix(xo-lite/dashboard): add min-width to hosts patches container (#8108)
Browse files Browse the repository at this point in the history
Set a minimum width for the "Patches" and "Status" cards to align with the design system and allocate enough space for displaying data when it is being loaded.
  • Loading branch information
OlivierFL authored Nov 15, 2024
1 parent b81e83c commit 29b4c0a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions @xen-orchestra/lite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

## **next**

- [Pool/Dashboard] `Patches` and `Status` cards are displayed with a greater minimum width (PR [#8108](https://github.com/vatesfr/xen-orchestra/pull/8108))

## **0.5.0** (2024-10-31)

- Handle IPv6 hosts (PR [#8044](https://github.com/vatesfr/xen-orchestra/pull/8044))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<UiCard>
<UiCard class="pool-dashboard-hosts-patches">
<UiCardTitle class="patches-title">
{{ $t('patches') }}
<template v-if="areAllLoaded && count > 0" #right>
Expand Down Expand Up @@ -30,6 +30,10 @@ const { count, patches, areSomeLoaded, areAllLoaded } = useHostPatches(hosts)
</script>

<style lang="postcss" scoped>
.pool-dashboard-hosts-patches {
min-width: 43.8rem;
}
.patches-title {
--section-title-right-color: var(--color-danger-txt-base);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<UiCard :color="hasError ? 'error' : undefined">
<UiCard class="pool-dashboard-status" :color="hasError ? 'error' : undefined">
<UiCardTitle>{{ $t('status') }}</UiCardTitle>
<NoDataError v-if="hasError" />
<UiCardSpinner v-else-if="!isReady" />
Expand Down Expand Up @@ -54,3 +54,9 @@ const totalVmsCount = computed(() => vms.value.length)
const activeVmsCount = computed(() => vms.value.filter(vm => vm.power_state === 'Running').length)
</script>

<style lang="postcss" scoped>
.pool-dashboard-status {
min-width: 32rem;
}
</style>

0 comments on commit 29b4c0a

Please sign in to comment.