This commit is contained in:
@@ -37,11 +37,7 @@ export function ExpandableGroup({
|
||||
opacity: overlayOpacity
|
||||
} : undefined
|
||||
|
||||
// Добавляем отладочную информацию
|
||||
console.log(`ExpandableGroup: ${links.length} links, initialShowCount: ${initialShowCount}, layout: ${layout}`)
|
||||
|
||||
if (links.length <= initialShowCount) {
|
||||
console.log(`No expand button needed: ${links.length} <= ${initialShowCount}`)
|
||||
return (
|
||||
<div className={className}>
|
||||
{links.map((link) => (
|
||||
@@ -61,8 +57,6 @@ export function ExpandableGroup({
|
||||
const visibleLinks = isExpanded ? links : links.slice(0, initialShowCount)
|
||||
const hiddenCount = links.length - initialShowCount
|
||||
|
||||
console.log(`Showing expand button: visibleLinks: ${visibleLinks.length}, hiddenCount: ${hiddenCount}`)
|
||||
|
||||
return (
|
||||
<div className={className}>
|
||||
{visibleLinks.map((link) => (
|
||||
|
||||
@@ -170,8 +170,8 @@
|
||||
}
|
||||
|
||||
.links-preview {
|
||||
max-height: 120px;
|
||||
overflow: hidden;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/* Кладка (Masonry) адаптивная сетка */
|
||||
|
||||
Reference in New Issue
Block a user