MT#62070 Fix Dashboard Containers Overflow Issue

Resolved an issue where item lists on the
dashboard would overflow the container borders
when containing many items. The updated logic
limits the visible items to the 5 most recent,
ensuring proper layout and improved UI
consistency.

Change-Id: I50ee8ed9e5b8d68abc77ae17ca4273320d2c6daa
(cherry picked from commit 1b70f20ee2)
mr13.1
Debora Crescenzo 3 months ago committed by Crescenzo Debora
parent 20e41605f1
commit bbf0c474b8

@ -52,7 +52,7 @@
class="csc-card-list" class="csc-card-list"
> >
<q-list <q-list
v-for="(item, index) in itemsList" v-for="(item, index) in shortItemsList"
:key="item.id" :key="item.id"
> >
<template v-if="useSlot"> <template v-if="useSlot">
@ -95,12 +95,12 @@
</q-item> </q-item>
</template> </template>
<q-separator <q-separator
v-if="index !== itemsList.length-1" v-if="index !== shortItemsList.length-1"
spaced spaced
/> />
</q-list> </q-list>
<div <div
v-if="!loading && itemsList.length === 0" v-if="!loading && shortItemsList.length === 0"
class="text-center" class="text-center"
> >
{{ error ? $t('Data loading error') : noItemsMessage }} {{ error ? $t('Data loading error') : noItemsMessage }}
@ -185,7 +185,12 @@ export default {
default: false default: false
} }
}, },
emits: ['action'] emits: ['action'],
computed: {
shortItemsList () {
return this.itemsList.length >= 5 ? this.itemsList.slice(0, 5) : this.itemsList
}
}
} }
</script> </script>
@ -201,7 +206,7 @@ export default {
padding-bottom: 22px padding-bottom: 22px
.csc-card-list .csc-card-list
height: 400px height: 450px
.csc-card-footer .csc-card-footer
height: 80px height: 80px

Loading…
Cancel
Save