@gravity-ui/page-constructor 1.7.1-alpha.3 → 1.7.1-alpha.4

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.
@@ -8,12 +8,17 @@ unpredictable css rules order in build */
8
8
  margin-bottom: 24px;
9
9
  }
10
10
  .pc-tabs-block__block-title_centered {
11
- margin: 0 auto 12px;
11
+ display: flex;
12
+ justify-content: center;
13
+ flex-wrap: wrap;
14
+ margin-left: auto;
15
+ margin-right: auto;
12
16
  text-align: center;
13
17
  }
14
18
  .pc-tabs-block__tabs_centered {
15
19
  display: flex;
16
20
  justify-content: center;
21
+ flex-wrap: wrap;
17
22
  }
18
23
  .pc-tabs-block__row_reverse {
19
24
  flex-direction: row-reverse;
@@ -64,6 +69,8 @@ unpredictable css rules order in build */
64
69
  @media (max-width: 769px) {
65
70
  .pc-tabs-block__tabs {
66
71
  display: flex;
72
+ flex-wrap: nowrap;
73
+ justify-content: flex-start;
67
74
  overflow: auto;
68
75
  margin-left: -48px;
69
76
  margin-right: -48px;
@@ -45,7 +45,7 @@ const TabsBlock = ({ items, title, description, animated, tabsColSizes, centered
45
45
  react_1.default.createElement(FullscreenImage_1.default, Object.assign({}, imageProps, { imageClassName: b('image') })),
46
46
  (activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.caption) && (react_1.default.createElement("p", { className: b('caption') }, activeTabData.caption))))));
47
47
  return (react_1.default.createElement(AnimateBlock_1.default, { className: b(), onScroll: () => setPlay(true), animate: animated },
48
- react_1.default.createElement(BlockHeader_1.default, { title: title, description: description, className: b('block-title', { centered: centered }), colSizes: centered ? { all: 12 } : { all: 12, sm: 8 } }),
48
+ react_1.default.createElement(BlockHeader_1.default, { title: title, description: description, className: b('block-title', { centered: centered }) }),
49
49
  react_1.default.createElement(grid_1.Row, null,
50
50
  react_1.default.createElement(grid_1.Col, { sizes: tabsColSizes },
51
51
  react_1.default.createElement(ButtonTabs_1.default, { items: tabs, onSelectTab: setActiveTab, activeTab: activeTab, className: b('tabs', { centered: centered }) }))),
@@ -8,12 +8,17 @@ unpredictable css rules order in build */
8
8
  margin-bottom: 24px;
9
9
  }
10
10
  .pc-tabs-block__block-title_centered {
11
- margin: 0 auto 12px;
11
+ display: flex;
12
+ justify-content: center;
13
+ flex-wrap: wrap;
14
+ margin-left: auto;
15
+ margin-right: auto;
12
16
  text-align: center;
13
17
  }
14
18
  .pc-tabs-block__tabs_centered {
15
19
  display: flex;
16
20
  justify-content: center;
21
+ flex-wrap: wrap;
17
22
  }
18
23
  .pc-tabs-block__row_reverse {
19
24
  flex-direction: row-reverse;
@@ -64,6 +69,8 @@ unpredictable css rules order in build */
64
69
  @media (max-width: 769px) {
65
70
  .pc-tabs-block__tabs {
66
71
  display: flex;
72
+ flex-wrap: nowrap;
73
+ justify-content: flex-start;
67
74
  overflow: auto;
68
75
  margin-left: -48px;
69
76
  margin-right: -48px;
@@ -42,7 +42,7 @@ export const TabsBlock = ({ items, title, description, animated, tabsColSizes, c
42
42
  React.createElement(FullScreenImage, Object.assign({}, imageProps, { imageClassName: b('image') })),
43
43
  (activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.caption) && (React.createElement("p", { className: b('caption') }, activeTabData.caption))))));
44
44
  return (React.createElement(AnimateBlock, { className: b(), onScroll: () => setPlay(true), animate: animated },
45
- React.createElement(BlockHeader, { title: title, description: description, className: b('block-title', { centered: centered }), colSizes: centered ? { all: 12 } : { all: 12, sm: 8 } }),
45
+ React.createElement(BlockHeader, { title: title, description: description, className: b('block-title', { centered: centered }) }),
46
46
  React.createElement(Row, null,
47
47
  React.createElement(Col, { sizes: tabsColSizes },
48
48
  React.createElement(ButtonTabs, { items: tabs, onSelectTab: setActiveTab, activeTab: activeTab, className: b('tabs', { centered: centered }) }))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "1.7.1-alpha.3",
3
+ "version": "1.7.1-alpha.4",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {