codexly-ui 0.15.7 → 0.15.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15957,10 +15957,12 @@ class ClxStatCardComponent {
15957
15957
  _hostClass = computed(() => {
15958
15958
  const border = resolveColor(this.color()).borderLight;
15959
15959
  const radius = resolveContainerRadius(this._themeSvc.config().borderRadius);
15960
- // h-full so every layout fills whatever height its parent grid cell actually gives it, instead
15961
- // of only growing to fit its own content — otherwise two cards of the same grid size look like
15962
- // different heights depending on which of the 3 layouts got picked for each.
15963
- const base = `bg-clx-surface ${radius} shadow-md border ${border} p-4 w-full h-full overflow-hidden min-w-[200px]`;
15960
+ // h-full + justify-center (not h-full alone) so a parent grid cell taller than this card's
15961
+ // natural content centers it instead of stretching/cramming it — a card whose content is
15962
+ // genuinely shorter than the cell just sits centered, never squeezed or clipped. min-h-fit
15963
+ // guards the opposite case: a cell shorter than the content (e.g. horizontal's sparkline row)
15964
+ // still lets the card grow to its real height instead of clipping via overflow-hidden.
15965
+ const base = `bg-clx-surface ${radius} shadow-md border ${border} p-4 w-full h-full justify-center min-h-fit min-w-[200px]`;
15964
15966
  // horizontal stacks its title row above its icon/value/sparkline row (flex-col); vertical/bar
15965
15967
  // keep a single side-by-side row (flex items-center) as before.
15966
15968
  const layoutCls = this.layout() === 'horizontal' ? 'flex flex-col gap-2' : 'flex items-center gap-3';