@cloud-ru/ds-uikit-product-header 2.2.3 → 2.2.4-preview-57a467a6.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-ru/ds-uikit-product-header",
3
- "version": "2.2.3",
3
+ "version": "2.2.4-preview-57a467a6.0",
4
4
  "description": "Продуктовая шапка консоли — HeaderLayout, MainMenu, UserMenu, Logo, PathBreadcrumbs и PlatformLogo.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,36 +45,36 @@
45
45
  "@dnd-kit/utilities": "^3.2.2",
46
46
  "classnames": "^2.5.1",
47
47
  "fuse.js": "^7.1.0",
48
- "@cloud-ru/ds-accordion": "^1.2.6",
49
- "@cloud-ru/ds-button": "^1.0.5",
50
- "@cloud-ru/ds-card": "^1.0.27",
51
- "@cloud-ru/ds-adaptive": "^1.0.3",
52
- "@cloud-ru/ds-drag-and-drop": "^1.1.4",
53
- "@cloud-ru/ds-drawer": "^2.1.4",
54
- "@cloud-ru/ds-breadcrumbs": "^1.0.37",
55
- "@cloud-ru/ds-icons": "^1.7.1",
56
- "@cloud-ru/ds-avatar": "^1.0.15",
57
- "@cloud-ru/ds-info-block": "^1.0.4",
58
- "@cloud-ru/ds-divider": "^1.0.3",
59
- "@cloud-ru/ds-locale": "^1.0.0",
60
- "@cloud-ru/ds-list": "^3.0.2",
61
- "@cloud-ru/ds-materials": "^2.0.2",
62
- "@cloud-ru/ds-modal": "^2.0.5",
63
- "@cloud-ru/ds-promo-tag": "^1.0.4",
64
- "@cloud-ru/ds-portal-context": "^1.0.3",
65
- "@cloud-ru/ds-search": "^1.0.18",
66
- "@cloud-ru/ds-skeleton": "^1.0.3",
67
- "@cloud-ru/ds-theme": "^2.1.0",
68
- "@cloud-ru/ds-truncate-string": "^1.0.16",
69
- "@cloud-ru/ds-segment-control": "^1.0.17",
70
- "@cloud-ru/ds-tooltip": "^1.0.15",
71
- "@cloud-ru/ds-toggles": "^1.1.13",
72
- "@cloud-ru/ds-uikit-product-switch-row": "^1.0.18",
73
- "@cloud-ru/ds-typography": "^1.0.2",
74
- "@cloud-ru/ds-utils": "^1.3.0",
75
- "@cloud-ru/ds-uikit-product-title-clickable": "^2.0.0",
76
- "@cloud-ru/ds-scroll": "^1.0.6",
77
- "@cloud-ru/ds-uikit-product-card-predefined": "^4.1.2"
48
+ "@cloud-ru/ds-accordion": "1.2.6",
49
+ "@cloud-ru/ds-button": "1.0.5",
50
+ "@cloud-ru/ds-card": "1.0.27",
51
+ "@cloud-ru/ds-adaptive": "1.0.3",
52
+ "@cloud-ru/ds-divider": "1.0.3",
53
+ "@cloud-ru/ds-breadcrumbs": "1.0.37",
54
+ "@cloud-ru/ds-drawer": "2.1.4",
55
+ "@cloud-ru/ds-info-block": "1.0.4",
56
+ "@cloud-ru/ds-avatar": "1.0.15",
57
+ "@cloud-ru/ds-list": "3.0.2",
58
+ "@cloud-ru/ds-modal": "2.0.5",
59
+ "@cloud-ru/ds-icons": "1.7.1",
60
+ "@cloud-ru/ds-promo-tag": "1.0.4",
61
+ "@cloud-ru/ds-scroll": "1.0.6",
62
+ "@cloud-ru/ds-portal-context": "1.0.3",
63
+ "@cloud-ru/ds-locale": "1.0.0",
64
+ "@cloud-ru/ds-search": "1.0.18",
65
+ "@cloud-ru/ds-drag-and-drop": "1.1.4",
66
+ "@cloud-ru/ds-materials": "2.0.2",
67
+ "@cloud-ru/ds-segment-control": "1.0.17",
68
+ "@cloud-ru/ds-skeleton": "1.0.3",
69
+ "@cloud-ru/ds-theme": "2.1.0",
70
+ "@cloud-ru/ds-toggles": "1.1.13",
71
+ "@cloud-ru/ds-tooltip": "1.0.15",
72
+ "@cloud-ru/ds-truncate-string": "1.0.16",
73
+ "@cloud-ru/ds-typography": "1.0.2",
74
+ "@cloud-ru/ds-uikit-product-title-clickable": "2.0.0",
75
+ "@cloud-ru/ds-uikit-product-switch-row": "1.0.18",
76
+ "@cloud-ru/ds-uikit-product-card-predefined": "4.1.2",
77
+ "@cloud-ru/ds-utils": "1.3.0"
78
78
  },
79
79
  "publishConfig": {
80
80
  "access": "public"
@@ -30,7 +30,7 @@ function FavoritesListBase({ onFavoriteChange, items, onServiceClick }: Favorite
30
30
 
31
31
  return (
32
32
  <div className={styles.listScroll}>
33
- <Scroll className={styles.listScrollInner} data-mobile overflow={{ x: 'hidden' }}>
33
+ <Scroll className={styles.listScrollInner} data-mobile overflow={{ x: 'hidden' }} barHideStrategy='never'>
34
34
  <div className={styles.list} data-test-id={FAVORITES_TEST_IDS.list}>
35
35
  {isEmpty ? (
36
36
  <EmptyState isFavoritesSegment isMobile />
@@ -41,7 +41,7 @@ function FavoritesReorderListBase({ favoriteIds, onFavoriteChange, items, onServ
41
41
  <div className={styles.listScroll} data-insert-new={showInsertNew}>
42
42
  <DropTarget active={Boolean(showDropOver)} className={styles.dropTarget} aria-hidden />
43
43
 
44
- <Scroll className={styles.listScrollInner} overflow={{ x: 'hidden' }}>
44
+ <Scroll className={styles.listScrollInner} overflow={{ x: 'hidden' }} barHideStrategy='never'>
45
45
  <div ref={setNodeRef} className={styles.list} data-test-id={FAVORITES_TEST_IDS.list}>
46
46
  {isEmpty ? (
47
47
  <EmptyState isFavoritesSegment />
@@ -34,7 +34,13 @@ function RecentListBase({ favoriteIds, onFavoriteChange, items, onServiceClick,
34
34
 
35
35
  return (
36
36
  <div className={styles.listScroll}>
37
- <Scroll className={styles.listScrollInner} data-mobile={isMobile || undefined} overflow={{ x: 'hidden' }}>
37
+ <Scroll
38
+ className={styles.listScrollInner}
39
+ data-segment='recent'
40
+ data-mobile={isMobile || undefined}
41
+ overflow={{ x: 'hidden' }}
42
+ barHideStrategy='never'
43
+ >
38
44
  <div className={styles.list} data-test-id={FAVORITES_TEST_IDS.list}>
39
45
  {isEmpty ? (
40
46
  <EmptyState isFavoritesSegment={false} isMobile={isMobile} />
@@ -63,11 +63,12 @@ $list-padding-bottom: base.$sn-primitive-dimension-8;
63
63
  }
64
64
 
65
65
  .listScrollInner {
66
- height: 100%;
67
- // Шаг карточки (высота + зазор) × 12 видимых + нижний паддинг `.list`.
68
- max-height: calc((#{$card-height} + #{$card-gap}) * 12 + #{$list-padding-bottom});
66
+ &[data-segment='recent'] {
67
+ max-height: calc((#{$card-height} + #{$card-gap}) * 12 + #{$list-padding-bottom});
68
+ }
69
69
 
70
70
  &[data-mobile] {
71
+ // Шаг карточки (высота + зазор) × 6 видимых + нижний паддинг `.list`.
71
72
  max-height: calc((#{$card-height} + #{$card-gap}) * 6 + #{$list-padding-bottom});
72
73
  }
73
74
  }