UBERF-6314: provide space if all of the items have same space (#5171)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2024-04-03 23:11:15 +05:00 committed by GitHub
parent 445b14b821
commit 75cccaeb6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,7 +134,7 @@
<svelte:component <svelte:component
this={headerComponent.presenter} this={headerComponent.presenter}
value={category} value={category}
{space} space={space ?? (items.every((i) => i?.space === items[0]?.space) ? items[0]?.space : undefined)}
size={'small'} size={'small'}
kind={'list-header'} kind={'list-header'}
colorInherit={!$themeStore.dark && level === 0} colorInherit={!$themeStore.dark && level === 0}