Refactored MeterGroup

pull/5677/head
Cagatay Civici 2024-04-08 14:13:22 +03:00
parent f91fa3bc57
commit 141adf6177
2 changed files with 7 additions and 7 deletions

View File

@ -11,10 +11,10 @@ const classes = {
metercontainer: 'p-metergroup-meters', metercontainer: 'p-metergroup-meters',
meter: 'p-metergroup-meter', meter: 'p-metergroup-meter',
labellist: ({ props }) => [ labellist: ({ props }) => [
'p-metergroup-labels', 'p-metergroup-label-list',
{ {
'p-metergroup-labels-vertical': props.labelOrientation === 'vertical', 'p-metergroup-label-list-vertical': props.labelOrientation === 'vertical',
'p-metergroup-labels-horizontal': props.labelOrientation === 'horizontal' 'p-metergroup-label-list-horizontal': props.labelOrientation === 'horizontal'
} }
], ],
labellistitem: 'p-metergroup-label', labellistitem: 'p-metergroup-label',

View File

@ -15,7 +15,7 @@ export default {
border: 0 none; border: 0 none;
} }
.p-metergroup-labels { .p-metergroup-label-list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin: 0; margin: 0;
@ -45,7 +45,7 @@ export default {
flex-direction: column; flex-direction: column;
} }
.p-metergroup-labels-horizontal { .p-metergroup-label-list-horizontal {
gap: 1rem; gap: 1rem;
} }
@ -66,7 +66,7 @@ export default {
flex-direction: row; flex-direction: row;
} }
.p-metergroup-labels-vertical { .p-metergroup-label-list-vertical {
flex-direction: column; flex-direction: column;
gap: 0.5rem; gap: 0.5rem;
} }
@ -77,7 +77,7 @@ export default {
height: 100%; height: 100%;
} }
.p-metergroup-vertical .p-metergroup-labels { .p-metergroup-vertical .p-metergroup-label-list {
align-items: start; align-items: start;
} }