M: Fix layout shrinking when unfolding items
Some checks failed
Backend CI / build (3.12) (push) Has been cancelled
Frontend CI / build (22.x) (push) Has been cancelled
Backend CI / notify-failure (push) Has been cancelled
Frontend CI / notify-failure (push) Has been cancelled

This commit is contained in:
Ivan 2025-08-24 11:41:05 +03:00
parent 846a237186
commit 79ce6a8720

View File

@ -59,12 +59,13 @@ export function SelectLocation({ value, dense, prefix, onClick, className, style
tabIndex={-1}
key={`${prefix}${index}`}
className={clsx(
!dense && 'h-7 sm:h-8',
!dense && 'min-h-7 sm:min-h-8',
'pr-3 py-1 flex items-center gap-2',
'cc-scroll-row',
'cc-hover-bg cc-animate-color duration-fade',
'cursor-pointer',
'leading-3 sm:leading-4',
'flex-shrink-0',
activeNode === item && 'cc-selected'
)}
style={{ paddingLeft: `${(item.rank > 5 ? 5 : item.rank) * 0.5 + 0.5}rem` }}